Usage

import { Switch } from '@loomhq/lens'
<Switch />

States

  • Use isActive to enable the Switch.
  • Use isDisabled to disable the Switch.

With label

Forwarding refs

Use the ref prop to access the DOM node.

More about forwarding refs.

Props

prop
type
default
isActive
bool
isDisabled
bool
onChange
func