Theme Switcher
21st.devA theme switcher component with smooth animations between light, dark, and system modes.
Theme Switcher
Installation
Props
<ThemeSwitcher />
Name | Type | |
|---|---|---|
className | string | |
value | "system" | "light" | "dark" | |
onChange | (theme: string) => void | |
defaultValue | "system" | "light" | "dark" (default: "system") |