Skip to content

NaiveColorModeSwitch

This component can be used to change color mode preference.

Props

NameTypeDefaultNote
Button's propsButtonPropsRefer to naive-ui
iconLightstringph:sunIcon name for light mode
iconDarkstringph:moonIcon name for dark mode
iconSystemstringph:monitorIcon name for system preference