Radio Groups
Lets users select only one option from a predefined set. Commonly used for preferences, settings, or form inputs.
Loading...
Installation
Usage
API
RadioGroup Props
For RadioGroup Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | Radio items rendered inside the group. Typically composed of RadioItem components. | - |
| className | string | Additional CSS classes to customize the radio group container styling. | - |
For RadioItem Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| variant | "default" | "success" | "danger" | "warning" | Controls the accent color of the radio input. | "default" |
| className | string | Additional CSS classes to customize the radio input styling. | - |
Examples
Default
Warning
Success
Danger
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.