npm.io
0.0.2-alpha.5 • Published 4 years ago

@novem-ui/switch

Licence
ISC
Version
0.0.2-alpha.5
Deps
3
Size
25 kB
Vulns
0
Weekly
0
Stars
1

@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, uses orange 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>
  )
}