---
title: Checkbox
description: A control that allows the user to toggle between checked and not checked.
component: true
links:
doc: https://www.radix-ui.com/docs/primitives/components/checkbox
api: https://www.radix-ui.com/docs/primitives/components/checkbox#api-reference
---
## Installation
CLI
Manual
```bash
npx shadcn@latest add checkbox
```
Install the following dependencies:
```bash
npm install @radix-ui/react-checkbox
```
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
```