Radio group
One choice among options: ray-radio (or ray-radio-card) elements inside a ray-radio-group, which is the form control.
Delivery, with a live total
- Subtotal
- $48.00
- Delivery
- $0.00
- Total
- $48.00
Arrives in 4–6 business days.
Cards: ray-radio-card in a ray-grid
Horizontal, colors and the outline variant
Sizes
Required, in a form
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-radio-group>
Arrow keys move the selection, Tab enters and leaves the group.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value | string | Value of the checked radio. Initial: the value attribute, or a radio with the checked attribute. | |
name | name | string | Form field name. | |
label | label | string | Group label (also its accessible name). | |
description | description | string | Help text. | |
descriptionPosition | description-position reflects | above | below | above | The description before the control (help first) or after it, with the error (fields in a row stay aligned). |
error | error | string | Error text. | |
required | required | boolean | A choice is needed to submit. | |
disabled | disabled | boolean | Disables every radio. | |
orientation | orientation reflects | vertical | horizontal | vertical | Layout of the radios. |
size | size reflects | xs | sm | md | lg | xl | sm | Size of every radio. |
color | color | string | Checked color of every radio. | |
variant | variant reflects | filled | outline | filled | Checked look of every radio: filled circle, or colored ring and dot. |
| Event | Description |
|---|---|
input | When the user picks a radio. |
change | When the user picks a radio. |
| Slot | Description |
|---|---|
| (default) | ray-radio or ray-radio-card elements (may be wrapped in layout elements: a ray-grid of cards). |
<ray-radio>
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value reflects | string | Value given to the group when chosen. | |
checked | checked (initial) | boolean | Whether this radio is the group's value; setting it sets the group's value. The checked attribute marks the group's initial value (when the group has no value attribute). | |
label | label | string | Label text (or the content). | |
description | description | string | Help text under the label. | |
disabled | disabled | boolean | Cannot be chosen. | |
color | color | string | Overrides the group color. | |
size | size | xs | sm | md | lg | xl | Overrides the group size. | |
variant | variant reflects | filled | outline | Overrides the group variant. |
| Slot | Description |
|---|---|
| (default) | Label content. |
| Part | Description |
|---|---|
indicator | The circle. |
label | The label. |
<ray-radio-card>
A radio drawn as a card: a title (label), a detail (description), an icon, more content; checked, it takes the color's border and light background. Inside a ray-radio-group like a ray-radio (arrow keys, the form, required, disabled); put the cards in a ray-grid for columns.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
hideIndicator | hide-indicator reflects | boolean | No radio circle: the card's border and background alone show the choice. |
| Slot | Description |
|---|---|
| (default) | More content under the description. |
icon | An icon before the title. |
| Part | Description |
|---|---|
root | The card. |
icon | Around the icon slot. |