Weather and time

Weather

WeatherStateIcon

Represents weather across sunny, cloudy, rainy, snowy states.

States

4 total

Sunny

Sunny.

Sunny

"sunny"

Sunny.

Cloudy

"cloudy"

Cloudy.

Rainy

"rainy"

Rainy.

Snowy

"snowy"

Snowy.

Implementation

Pass your current state.

The component stays presentational. Your application remains in control of async work and business logic. The state prop is a TypeScript string literal union — pass an invalid state and you'll get a type error at build time.

Source
Lucide
License
ISC
States
sunny · cloudy · rainy · snowy
example.tsx
import { WeatherStateIcon } from "@stateglyph/react";
<WeatherStateIcon state="sunny" decorative />