RadioGroup

Radio button group with proximity hover and animated selection.

Installation

npx shadcn@latest add https://fluid-functionalism.vercel.app/r/radio-group.json

Basic

API Reference — RadioGroup

PropTypeDefaultDescription
selectedIndexnumberIndex of the currently selected item.
childrenReactNodeRadioItem children.

API Reference — RadioItem

PropTypeDefaultDescription
labelstringText label for the radio item.
indexnumberPosition index within the group.
selectedbooleanWhether this item is selected.
onSelect() => voidCalled when this item is selected.
valuestringOptional Radix value for form integration.