---
title: Checkbox
description: A control allowing the user to toggle between checked and not checked.
links:
doc: https://base-ui.com/react/components/checkbox#api-reference
---
## Installation
CLI
Manual
```bash
npx shadcn@latest add @coss/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
```
## API Reference
### Checkbox
Styled wrapper for `Checkbox.Root` from Base UI. Includes a built-in indicator with checkmark and indeterminate icons.
## Examples
For accessible labelling and validation, prefer using the `Field` component to wrap checkboxes. See the related example: [Checkbox field](/ui/docs/components/field#checkbox-field).
### Disabled
### With Description
### Card Style
### Form Integration
Field provides accessible labelling and validation primitives for form controls. Use it with `Form` to submit values.