Docs
Checkbox
Checkbox
A control that allows the user to toggle between checked and not checked.
Installation
npx shadcn-ui add checkbox
npx shadcn-ui add checkbox
Usage
import { Checkbox } from "@/components/ui/checkbox"
import { Checkbox } from "@/components/ui/checkbox"
<Checkbox />
<Checkbox />
Examples
With text
You agree to our Terms of Service and Privacy Policy.
Disabled
React Hook Form
Note: Learn more about using React Hook Form on the docs page.