Installation
Examples
Icon variant
Single icon button that cycles through themes.
Button group variant
Three-button toggle showing Light, Dark, System.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | 'light'|'dark'|'system' | — | Controlled theme value. |
| onChange | (theme) => void | — | Called when theme changes. |
| variant | 'icon'|'toggle'|'select' | 'icon' | Display mode. |
| size | 'sm'|'md'|'lg' | 'md' | Controls component size. |