* added tool to generate spec files for React components * use typedoc for missing descriptions and types * improvements and fixes * improvements * added doc comments for half of the components * add custom resolver + more doc comments * added all tsdocs * general improvements * add specs to UI docs * added github action * remove unnecessary api route * Added readme for react-docs-generator * remove comment * Update packages/design-system/ui/src/components/currency-input/currency-input.tsx Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com> * remove description of aria fields + add generate script --------- Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
42 lines
712 B
Plaintext
42 lines
712 B
Plaintext
---
|
|
title: "Radio Group"
|
|
description: "A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time."
|
|
component: true
|
|
---
|
|
|
|
<ComponentExample name="radio-group-demo" />
|
|
|
|
## Usage
|
|
|
|
---
|
|
|
|
```tsx
|
|
import { RadioGroup } from "@medusajs/ui"
|
|
```
|
|
|
|
```tsx
|
|
<RadioGroup>
|
|
<RadioGroup.Item value="1" id="radio_1" />
|
|
<RadioGroup.Item value="2" id="radio_2" />
|
|
<RadioGroup.Item value="3" id="radio_3" />
|
|
</RadioGroup>
|
|
```
|
|
|
|
## API Reference
|
|
|
|
---
|
|
|
|
<ComponentReference mainComponent="RadioGroup" />
|
|
|
|
## Examples
|
|
|
|
---
|
|
|
|
### With Descriptions
|
|
|
|
<ComponentExample name="radio-group-descriptions" />
|
|
|
|
### With a disabled item
|
|
|
|
<ComponentExample name="radio-group-disabled" />
|