NaiveColorModeSwitch
Note
In case the color mode preference is light-only
or dark-only
this component is not usable.
This component can be used to change color mode preference.
Props
Name | Type | Default | Note |
---|---|---|---|
Button's props | ButtonProps | Refer to naive-ui | |
iconLight | string | ph:sun | Icon name for light mode |
iconDark | string | ph:moon | Icon name for dark mode |
iconSystem | string | ph:monitor | Icon name for system preference |