Skip to main content

@microsoft/fast-foundation > RadioGroup

RadioGroup class

An Radio Group Custom HTML Element. Implements the ARIA radiogroup.

label - The slot for the label

  • The default slot for radio buttons

positioning-region - The positioning region for laying out the radios

change - Fires a custom 'change' event when the value changes

Signature:
export declare class RadioGroup extends FoundationElement 

Properties

PropertyModifiersTypeDescription
childItemsHTMLElement[]
disabledbooleanDisables the radio group and child radios.
namestringThe name of the radio group. Setting this value will set the name value for all child radio elements.
orientationOrientation | "horizontal" | "vertical"The orientation of the group
readOnlybooleanWhen true, the child radios will be immutable by user interaction. See readonly HTML attribute for more information.
valuestringThe value of the checked radio

Methods

MethodModifiersDescription
disconnectedCallback()
nameChanged()
valueChanged()