Skip to Content

RadioGroup

Composes Radio items without product-side layout wrappers. Name/state and description ids flow through a private context. Native fieldset/legend label the group; use aria-label/aria-labelledby when omitting the visible label. No live role is added to validation messages.

Использование

Способ уведомления

Валидация

Группа
Группа

Ориентация

Группа
Группа

Состояния

Группа
Группа

API

ПропТипПо умолчаниюОписание
labelReactNode——
descriptionReactNode——
validationMessageReactNode——
validationStatus"default" | "error"default—
orientation"horizontal" | "vertical"vertical—
valuestring—Controlled selected value. Individual values must be unique strings.
defaultValuestringInitial selection and uncontrolled form-reset target.
onValueChange(value: string) => void——
readOnlybooleanFocusable and submitted, but selection cannot change.
requiredboolean—
Last updated on