* docs: create a new UI docs project (#13233) * docs: create a new UI docs project * fix installation errors * docs: migrate UI docs content to new project (#13241) * Fix content * added examples for some components * finish adding examples * lint fix * fix build errors * delete empty files * path fixes + refactor * fix build error
43 lines
722 B
Plaintext
43 lines
722 B
Plaintext
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 />
|