Usage

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

States

  • Use isChecked to check the checkbox.
  • Use isDisabled to disable the checkbox.
  • Use isIndeterminate for indeterminate checkbox.

With label

Forwarding refs

Use the ref prop to access the DOM node.

More about forwarding refs.

Props

name
type
default
isChecked
boolean
isIndeterminate
boolean
isDisabled
boolean
onFocus
React.ReactEventHandler
onChange
React.ReactEventHandler
onBlur
React.ReactEventHandler