--- title: Checkbox description: A control that allows the user to toggle between checked and not checked. base: base component: true links: doc: https://base-ui.com/react/components/checkbox api: https://base-ui.com/react/components/checkbox#api-reference --- ## Installation Command Manual ```bash npx shadcn@latest add checkbox ``` Install the following dependencies: ```bash npm install @base-ui/react ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Checkbox } from "@/components/ui/checkbox" ``` ```tsx ```