a
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: Radio
|
||||
description: Sometimes you need to pick multiple options! That's where the Radio component comes into play.
|
||||
lastUpdated: 09 Sep, 2025
|
||||
links:
|
||||
api_reference: https://www.radix-ui.com/primitives/docs/components/radio-group#api-reference
|
||||
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Radio.tsx
|
||||
---
|
||||
|
||||
<ComponentShowcase name="radio-style-default" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
## Installation
|
||||
|
||||
<ComponentInstall>
|
||||
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/radio" />
|
||||
<ComponentInstall.Manual>
|
||||
|
||||
#### 1. Install dependencies:
|
||||
|
||||
```sh
|
||||
npm install @radix-ui/react-radio-group class-variance-authority
|
||||
```
|
||||
|
||||
#### 2. Copy the code 👇 into your project:
|
||||
|
||||
<ComponentSource name="radio" />
|
||||
|
||||
</ComponentInstall.Manual>
|
||||
</ComponentInstall>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
## Examples
|
||||
|
||||
### Variants
|
||||
|
||||
<ComponentShowcase name="radio-style-variants" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
### Sizes
|
||||
|
||||
<ComponentShowcase name="radio-style-sizes" />
|
||||
<br />
|
||||
<br />
|
||||
Reference in New Issue
Block a user