<kern-radio-group>
Single choice from kern-radio children, form-associated. For longer or described options; for 2–5 short ones use kern-segmented. One tab stop: arrow keys move and select (wrapping), Space/Enter selects the focused option.
Examples
Radio group with descriptions
kern-radio children with label and description; a single option can be disabled. The group is one tab stop: arrow keys move and select (wrapping), Space or Enter selects the focused option.
Horizontal, required and disabled
orientation="horizontal" lays short options out in a row. required with no value blocks form submission; error shows a message. disabled on the group disables all options.
Properties
ariaLabelTextstring | undefined
Accessible name when there is no visible label.
disabledboolean
errorstring | undefined
hintstring | undefined
labelstring | undefined
namestring | undefined
orientation"horizontal" | "vertical"
Layout of the options.
requiredboolean
valuestring
Value of the checked kern-radio, empty when none.
Events
kernChangeCustomEvent<{ value: string; }>
When the user picks an option.
Methods
setFocus()setFocus() => Promise<void>
Focuses the checked option (or the first).
Slots
(default)kern-radio elements