Checkbox
A tactile checkbox with a crisp stroke-draw checkmark and an indeterminate dash state.
2/3
Customize
Size
Speed
Installation
Add the component with the registry command:
npx shadcn@latest add @kinetic/checkboxUsage
Import the checkbox and render it as a form control:
import { Checkbox } from "@/components/kinetic/ui/checkbox";
export function Terms() {
return <Checkbox aria-label="Accept terms" />;
}Sizes
Use size with sm, md, or lg.
<Checkbox size="sm" />
<Checkbox size="lg" />Indeterminate
Pass "indeterminate" as checked to show the dash state. onCheckedChange receives a boolean.
const [state, setState] = useState<boolean | "indeterminate">("indeterminate");
<Checkbox checked={state} onCheckedChange={setState} aria-label="Select all" />Motion preferences
Animations are skipped when reduced motion is enabled, either in the browser or in the Kinetic setting. Use the speed prop to scale animation timing.
API Reference
Checkbox
Accessible checkbox with a stroke-draw checkmark and an indeterminate dash.
| Prop | Type | Default | Description |
|---|---|---|---|
checked / defaultChecked | boolean | "indeterminate" | false | Controlled or uncontrolled checked state including mixed indeterminate selection. |
onCheckedChange | (checked: boolean) => void | - | Callback invoked with the next boolean state on toggle. |
size / speed / disabled | "sm" | "md" | "lg" / number / boolean | "md" / 1 / false | Box dimensions, animation speed multiplier (0.25-4), and disabled state. |
Notes
onCheckedChange passes boolean | 'indeterminate'; check value === true when storing a strict boolean. Group multiple checkboxes inside FieldSet + FieldLegend.