Components
GlassRadioGroup
A glassmorphism-styled radio group powered by Radix UI, composed of a Root and Item.
Preview
Usage
Controlled
Props — GlassRadioGroup
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Controlled selected value |
defaultValue | string | — | Initial value (uncontrolled) |
onValueChange | (value: string) => void | — | Callback when selection changes |
orientation | "horizontal" | "vertical" | "vertical" | Layout direction |
All Radix RadioGroup.Root props are also accepted.
Props — GlassRadioItem
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Value associated with this item (required) |
label | string | — | Optional label rendered beside the radio button |
id | string | — | HTML id, links the label for accessibility |
disabled | boolean | false | Disables this item |