Radio
Used to select one option from several options.
Installation
CLI
Add component to your project.
npx @perceptui/cli@latest add radioImport from @perceptui/ui
Note: If you have installed @perceptui/ui package, then import Radio
from @perceptui/ui.
import { Radio, RadioGroup } from "@perceptui/ui";API References
| Prop | Type | Description | Default |
|---|---|---|---|
| size | "xs"|"sm"|"md"|"lg"|"xl" | Size of the Radio | sm |
| color | string | Color of the Radio | blue |
| className | string | className | _ |