Primitives

Checkbox

Single boolean selection with an associated label; supports indeterminate state

Markdown version for agents

Import
import { Checkbox } from '@amezquita/design-system/components/primitives/Checkbox'

Live render

    Props

    PropTypeDescription
    label?string
    checked?CheckedState
    defaultChecked?CheckedState
    onCheckedChange?(checked: CheckedState) => void
    aria-label?string

    Also accepts all props of: Omit<React.ComponentPropsWithoutRef<typeof RadixCheckbox.Root>, 'onCheckedChange' | 'checked' | 'defaultChecked' | 'children' | 'asChild'>

    Tokens

    TokenTypeValue
    --checkbox-sizedimension24px

    Usage example

    tsx
    <Checkbox
      id="default"
      label="Accept terms and conditions"
    />