Usage
The SwitchTheme component provides a dropdown menu to switch between all available themes (Light, Dark, Retro, Lavender, Mint, Sunset, Ocean, Midnight, etc.).
A dropdown component to switch between all available themes (Light, Dark, Retro, Lavender, Mint, Sunset, Ocean, Midnight, etc.).
Experiment with the SwitchTheme component properties. Click the button to open the dropdown and switch themes.
Visual style of the button.
Size of the button.
Whether to show the theme name next to the icon.
The SwitchTheme component provides a dropdown menu to switch between all available themes (Light, Dark, Retro, Lavender, Mint, Sunset, Ocean, Midnight, etc.).
SwitchTheme supports different visual variants to match your UI design.
You can enable showLabel to display the current theme name.
Prop | Default | Type |
|---|---|---|
variant | "soft" | "solid" | "soft" | "subtle" | "text" |
size | "medium" | "small" | "medium" | "large" |
showLabel | false | boolean |