import { ComponentExample } from "@/components/ComponentExample"
import { ComponentReference } from "@/components/ComponentReference"

export const metadata = {
  title: `Checkbox`,
}

# {metadata.title}

A component for rendering checkbox inputs using Medusa's design system.

In this guide, you'll learn how to use the Checkbox component.

<ComponentExample name="checkbox-demo" />

## Usage

```tsx
import { Checkbox } from "@medusajs/ui"
```

```tsx
<Checkbox />
```

---

## API Reference

<ComponentReference mainComponent="Checkbox" />

---

## Examples

### Checkbox All States

<ComponentExample name="checkbox-all-states" />

### Controlled Checkbox

<ComponentExample name="checkbox-controlled" hideFeedback />
