@novem-ui/switch
v0.0.2-alpha.5
Published
Switch component from novem-ui
Downloads
6
Readme
@novem-ui/switch
Usage
<Switch />
The component has the following props, plus SpacingProps and all the expected props from the native <input type="checkbox" />
:
baseColor
(Optional): It can be any color from the theme, usesorange
by default.
import { Switch, ThemeProvider } from '@novem-ui/core'
// or
import Switch from '@novem-ui/switch'
import { ThemeProvider } from '@novem-ui/theme'
function App() {
return (
<ThemeProvider>
<Switch selected>
</ThemeProvider>
)
}