Light theme
"light"Light theme.
Appearance
ThemeStateIconRepresents theme across light, dark, system states.
Light theme.
"light"Light theme.
"dark"Dark theme.
"system"System theme.
Implementation
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.
import { ThemeStateIcon } from "@stateglyph/react";
<ThemeStateIcon state="light" decorative />