Files
nanocode/RetroUI/content/docs/components/checkbox.mdx
T
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

49 lines
940 B
Plaintext

---
title: Checkbox
description: Let users confirm or reject an option.
lastUpdated: 13 Feb, 2024
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/checkbox#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Checkbox.tsx
---
<ComponentShowcase name="checkbox-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/checkbox" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-checkbox class-variance-authority lucide-react
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="checkbox" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Variants
<ComponentShowcase name="checkbox-style-variants" />
<br />
<br />
### Sizes
<ComponentShowcase name="checkbox-style-sizes" />