created:3/15/2021
updated:3/15/2021
source lines:40
comments %:10
ColorMode
Theme-ui dark/light mode toggle.
Name | Description | Default | |
---|---|---|---|
ToggleOwnProps (2 properties) | |||
label | optional label to be displayed alongside the toggle string | - | |
ref | obtain a ref target Ref<ReactSwitch> | - | |
ReactSwitchProps (14 properties) |
package | imports | peer |
---|---|---|
@primer/octicons-react ^10.0.0 | SunIconMoonIcon | |
react ^17.0.1 | FC | * |
theme-ui ^0.6.0-alpha.7 | useColorModejsxBox |
file | imports |
---|---|
"../Toggle" | ToggleToggleProps |