Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

RadioGroup

One choice from a small set, as native radios in a fieldset.

import { RadioGroup } from '@loidolt/theme-svelte';

Example

Workspace mode
Finish

Notes

  • An option's description renders under its label and is read after it through aria-describedby, not as part of its name.

Props

Generated from the component source, so it cannot drift from the implementation.

RadioGroup props
PropTypeDefaultNotes
options required ChoiceOption<T>[]—Choices. A description renders under its label and is read after it.
class string—
label string—Visible group label, rendered as a <legend>.
name string$props.id()Shared name for the inputs. Defaults to an SSR-stable generated id.
onValueChange (value: T) => void—
orientation Orientation'horizontal'
ref bindableHTMLFieldSetElement | nullnull
value bindableT—

Plus the attributes of HTMLFieldsetAttributes, forwarded to the root element.