Usage
import { Switch } from '@loomhq/lens'
<Switch />
Sizes
States
- Use
isActive
to enable the Switch. - Use
isDisabled
to disable the Switch.
With label
Props
name
type
default
size
'medium' | 'large'
'medium'
isActive
boolean
isDisabled
boolean
onChange
React.ReactEventHandler
ariaLabelledby
string
ariaLabel
string