Usage
The ButtonTheme component provides a simple way to toggle between light and dark themes with animated icon transitions.
A theme toggle button component with animated icon transitions between light and dark modes.
Experiment with the ButtonTheme component properties. Click the button to toggle between light and dark themes.
Color scheme of the button.
Animation type when toggling theme.
Size of the button.
The ButtonTheme component provides a simple way to toggle between light and dark themes with animated icon transitions.
ButtonTheme supports six animation types: fade, rotate, scale, flip, slide, and none.
Prop | Default | Type |
|---|---|---|
animation | "scale" | "fade" | "rotate" | "scale" | "flip" | "slide" | "none" |
color | "neutral" | ButtonProps["color"] |
size | "medium" | ButtonProps["size"] |
...rest | undefined | ButtonProps |