---
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
source:
radix: true
shadcn: true
---
## Installation
CLI
Manual
```bash
npx shadcn-ui@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
```
## Examples
### With text
### Disabled
### Form