created:3/5/2021
updated:3/5/2021
loc
39
comments
10%
passed
2
coverage
0%
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 ToggleRef | - | |
ReactSwitchProps(17 properties) |
6 commits
package | imports | peer |
---|---|---|
@primer/octicons-react ^10.0.0 | SunIconMoonIcon | |
react ^17.0.1 | FC | * |
theme-ui ^0.8.4 | useColorModejsxBox |
file | imports |
---|---|
"../Toggle" | ToggleToggleProps |