Weather and time

Daylight

DaylightStateIcon

Represents daylight across dawn, day, dusk, night states.

States

4 total

Dawn

Dawn.

Dawn

"dawn"

Dawn.

Daytime

"day"

Daytime.

Dusk

"dusk"

Dusk.

Nighttime

"night"

Nighttime.

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
dawn · day · dusk · night
example.tsx
import { DaylightStateIcon } from "@stateglyph/react";
<DaylightStateIcon state="dawn" decorative />