components/checkbox

Checkbox

A tick box with an animated mark, an indeterminate state and three sizes.

Usageimport { Checkbox } from "./Checkbox";
1import { Checkbox } from "./Checkbox";
2 
3<Checkbox />

Copy the source with the toolbar’s copy button — or open the Code pane to select it by hand — then paste the file into your project. It is self-contained, with no registry metadata and no dependencies (Tailwind classes required).

Props

PropTypeDefault
labelstringEmail me release notes
defaultCheckedbooleantrue
indeterminatebooleanfalse
sizesm | md | lgmd
disabledbooleanfalse