nori-ui

Checkbox

Controlled or uncontrolled checkbox with indeterminate support and asChild.

At a glance

  • States: unchecked, checked, indeterminate, disabled.
  • Emits semantic icon via checkmark key from SemanticIconsProvider.
  • asChild passes control to a supplied root element.

Web preview

Native preview

Props

PropTypeDefaultDescription
checkedbooleanControlled checked state
defaultCheckedbooleanfalseUncontrolled initial state
indeterminatebooleanfalseVisual-only indeterminate state
onCheckedChange(checked: boolean) => voidChange handler
disabledbooleanfalseDisables interaction
labelstringVisible label tied via aria
asChildbooleanfalseRenders the supplied child as root

On this page