‹ components

Checkbox

stablev1.0.0·open in canvas

Checkbox on Radix -- brand fill when checked.

Installnpx shadcn add @cids/checkbox
Live demo

Motion · tap to replay

honors reduced-motion

Fill/border 150ms targeted; no check-draw animation (data surfaces stay calm).

Brand chip remounts on tap · highlighted tokens are named in this component's doc · spring is budgeted to human feedback only.

import { Checkbox } from "@/design-system";

<Checkbox checked={agreed} onCheckedChange={setAgreed} aria-label="Agree" />

Tokens · live

Resolves in the active theme — flip the toggle above to verify.

States · live

Forced instances — hover/focus still work on the live demo above.

unchecked - checked - focus-visible - disabled.

checked

unchecked

disabled

Checkbox on Radix -- brand fill when checked.

Anatomy

[ ]  unchecked: container bg, outline border
[x]  checked: brand fill, on-brand check

Props

PropTypeDefaultNotes
checked / onCheckedChangecontrolled pair--Indeterminate not supported in v1.
disabledboolean--
classNamestring--cn-merged.
...restRadix Checkbox props--aria-label, name...

Motion

Fill/border 150ms targeted; no check-draw animation (data surfaces stay calm).

A11y

Self-contained: copy the folder into any Tailwind+React app, or use the install command above. Docs and this page render the same file on disk — they cannot drift.