Default

<Checkbox label="I agree to the terms" />

States

<Checkbox label="Default" />
<Checkbox label="Checked" checked />
<Checkbox label="Indeterminate" indeterminate />
<Checkbox label="Disabled" disabled />

With description and error

You can unsubscribe at any time.

You must accept cookies to continue.

<Checkbox
  label="Subscribe to newsletter"
  description="You can unsubscribe at any time."
/>
<Checkbox
  label="Accept cookies"
  error="You must accept cookies to continue."
/>

Sizes and colors

<Checkbox size="xs" label="xs" checked />
<Checkbox size="sm" label="sm" checked />
<Checkbox size="md" label="md" checked />
<Checkbox size="lg" label="lg" checked color="green" />
<Checkbox size="xl" label="xl" checked color="violet" />

Label on left

<Checkbox label="Label on left" labelPosition="left" />

Props

PropTypeDefaultDescription
idstringAssociates label with checkbox via HTML for/id
labelReactNodeClickable label beside the checkbox
descriptionReactNodeHelper text below the label
errorReactNode|booleanError message; pass true for styles only
checkedbooleanChecked state (SSR snapshot)
defaultCheckedbooleanChecked on first render (uncontrolled)
indeterminatebooleanRenders the indeterminate (mixed) state
disabledbooleanDisables the checkbox
requiredbooleanMarks the field as required
size'xs'|'sm'|'md'|'lg'|'xl'Checkbox icon and hit area size
radius'xs'|'sm'|'md'|'lg'|'xl'|stringBorder-radius of the checkbox box
colorstringFill color of the checked checkbox
iconColorstringColor of the checkmark icon
labelPosition'right'|'left''right'Side on which the label is rendered
namestringForm field name
valuestringValue submitted when checked
classstringAdditional CSS class names
styleobjectInline styles