Usage
import { Switch } from '@loomhq/lens'<Switch />
States
- Use
isActive
to enable the Switch. - Use
isDisabled
to disable the Switch.
With label
Props
prop
type
default
required
isActive
bool
isDisabled
bool
onChange
func
import { Switch } from '@loomhq/lens'<Switch />
isActive
to enable the Switch.isDisabled
to disable the Switch.