Checkbox
A binary choice with a precise, legible state.
npx shadcn@latest add @silicon-ui/checkboxInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/checkboxManually
Install the dependencies
npm install @radix-ui/react-checkbox motionCopy these files into your project
- components/silicon-ui/checkbox/checkbox.tsx
- components/silicon-ui/checkbox/checkbox.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation
Usage
API reference
| Prop | Type | Default |
|---|---|---|
label | string | — |
description | string | — |
Also accepts the props of ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>.