RadioGroup
Radio button group with proximity hover and animated selection.
Installation
npx shadcn@latest add https://fluid-functionalism.vercel.app/r/radio-group.jsonBasic
Option B
Option C
API Reference — RadioGroup
| Prop | Type | Default | Description |
|---|---|---|---|
| selectedIndex | number | — | Index of the currently selected item. |
| children | ReactNode | — | RadioItem children. |
API Reference — RadioItem
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Text label for the radio item. |
| index | number | — | Position index within the group. |
| selected | boolean | — | Whether this item is selected. |
| onSelect | () => void | — | Called when this item is selected. |
| value | string | — | Optional Radix value for form integration. |