Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also
accepted unless noted.
Radio.Root
Extends button HTML attributes.
| Property | Type | Default | Description |
|---|
value | string | — | Controlled value. |
disabled | boolean | false | Whether the control ignores user interaction. |
children | Snippet<[{ checked: boolean; disabled: boolean }]> | — | Content rendered inside the part. |
| Data attribute | Description |
|---|
data-checked | Present when the part is checked. |
data-disabled | Present when the part is disabled. |
data-unchecked | Present when the part is unchecked. |
Radio.Indicator
Extends span HTML attributes.
| Property | Type | Default | Description |
|---|
children | Snippet | — | Content rendered inside the part. |
| Data attribute | Description |
|---|
data-checked | Present when the part is checked. |
data-disabled | Present when the part is disabled. |
data-unchecked | Present when the part is unchecked. |
RadioGroup
Extends div HTML attributes.
| Property | Type | Default | Description |
|---|
value | string | undefined | — | Controlled value. |
defaultValue | string | — | Uncontrolled initial value. |
onValueChange | ((value: string, event: Event) => void) | undefined | — | Event handler called when the value changes. |
disabled | boolean | false | Whether the control ignores user interaction. |
name | string | undefined | — | — |
required | boolean | — | — |
children | Snippet<[{ value: string; disabled: boolean }]> | — | Content rendered inside the part. |
| Data attribute | Description |
|---|
data-disabled | Present when the part is disabled. |