Elements

Components

Radio Group

RadioGroup, dressed in the paper-and-ink system: a column of full-circle seals that fill flat with primary ink when chosen, the dot punched through as paper. The parts — Root, Label, Item, ItemText, ItemControl, Indicator, ItemHiddenInput.

#Basic usage

radio-group/basic Vue React
Ground

#Props

#Indicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemContext

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemControl

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemHiddenInput

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemText

A styled part — no props of its own; it takes the anatomy's shared styling.

#Item

PropTypeDefaultDescription
disabledboolean | undefined—
invalidboolean | undefined—
valuestring—

#Label

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
sizeString as PropType<"sm" | "md" | "lg">"md"One rung for the dial; the chosen dot rides it.
defaultValuestring | nullThe initial value of the checked radio when rendered. Use when you don't need to control the value of the radio group.
disabledbooleanIf true, the radio group will be disabled
formstringThe associate form of the underlying input.
idstringThe unique identifier of the machine.
idsPartial<{ root: string; label: string; indicator: string; item(value: string): string; itemLabel(value: string): string; itemControl(value: string): string; itemHiddenInput(value: string): string; }>The ids of the elements in the radio. Useful for composition.
invalidbooleanWhether the radio group is invalid
modelValuestring | nullThe v-model value of the radio group
namestringThe name of the input fields in the radio (Useful for form submission).
orientation'horizontal' | 'vertical'Orientation of the radio group
readOnlybooleanWhether the checkbox is read-only
requiredbooleanWhether the radio group is required