Components•Checkbox
Components•Checkbox
Checkbox
A binary selection control for preferences, filters, and table rows.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-checkboxHow to use
import { BjorkCheckbox } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Checkbox primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
checkedbooleanUse with onCheckedChange when the checked state is controlled by your form or table row.
Checked row
Use inside tables, preference rows, or dense filter stacks.
<label> <BjorkCheckbox defaultChecked /> Include archived items</label>