• Velge bare et svaralternativ
  • Navigasjon
Installer
KommandoInteraksjon
TabFlytter fokus til den valgte radioknapp
ShiftTabFlytter fokus til element før radiogruppe i tabindex
SpaceVelger en radioknapp
Pil opp/venstreFlytter fokus til forrige valg
Pil ned/høyreFlytter fokus til neste valg
children ReactNode
Radio label
value any
The value of the HTML element
description? string
Adds a description to extend labling of Radio
size? "medium" | "small"
Changes font-size, padding and gaps
disabled? boolean
Disables element @note Avoid using if possible for accessibility purposes
id? string
Override internal id
className? string
ref? Ref<HTMLInputElement>
Radio extends HTMLInputElement
children ReactNode
Collection of <Radio />-elements
name? string
Override internal name
defaultValue? any
Default checked Radio
value? any
Controlled state for Radio
onChange?((value: any) => void)
Returns current checked Radio in group
required? boolean
Tells Fieldset if group is required
legend ReactNode
Fieldset legend
hideLegend? boolean
If enabled shows the legend and description for screenreaders only
error? ReactNode
Error message for element
errorId? string
Override internal errorId
size? "medium" | "small"
Changes font-size, padding and gaps
disabled? boolean
Disables element @note Avoid using if possible for accessibility purposes
description? ReactNode
Adds a description to extend labling of a field
id? string
Override internal id
className? string
ref? Ref<HTMLFieldSetElement>
RadioGroup extends HTMLFieldSetElement