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

prop
type
default
isChecked
bool
isIndeterminate
bool
isDisabled
bool
onFocus
func
onChange
func
onBlur
func