---
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
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@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
```
## API Reference
### CheckBox
Styled wrapper for `Checkbox.Root` from Base UI. Includes a built-in indicator with checkmark and indeterminate icons.
## Examples
### Disabled
### Indeterminate