A checkbox component with label support. The label can be placed at the Start, End, Top, or Bottom position with full RTL support.
Loading demo: checkbox-label-real-world
npx sdaia-ui@latest add checkbox
import { Checkbox } from '@/components/ui/Checkbox';<Checkbox placement="start" />Use the `size` prop to change the size of the checkbox.
Loading demo: checkbox-size
A primary checkbox with brand colour for the checked state.
Loading demo: checkbox-primary
Use `style="Neutral"` for a grey checked state in secondary contexts.
Loading demo: checkbox-neutral
Use the `size` prop to change the size of the checkbox.
Loading demo: checkbox-disabled
Props for the Checkbox component.
Prop | Type | Default | Required |
|---|---|---|---|
label | ReactNode | — | optional |
placement | "start" | "end" | "top" | "bottom" | "start" | optional |
readOnly | boolean | false | optional |
indeterminate | boolean | false | optional |
size | "sm" | "md" | "lg" | "md" | optional |
variant | "primary" | "neutral" | "primary" | optional |
error | string | — | optional |
helperText | string | — | optional |
disabled | boolean | false | optional |
checked | boolean | — | optional |
defaultChecked | boolean | — | optional |
onCheckedChange | (checked: boolean) => void | — | optional |
validationBehavior | "native" | "aria" | "native" | optional |
dir | "ltr" | "rtl" | — | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | The box has a fixed size per size option (16, 20 or 24px). The label fills the remaining width and wraps. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Same box sizes; label text follows the mobile token values and wraps onto more lines. |