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
| Проп | Тип | По умолчанию | Описание |
|---|---|---|---|
label | ReactNode | — | — |
description | ReactNode | — | — |
validationMessage | ReactNode | — | — |
validationStatus | "default" | "error" | default | — |
orientation | "horizontal" | "vertical" | vertical | — |
value | string | — | Controlled selected value. Individual values must be unique strings. |
defaultValue | string | | Initial selection and uncontrolled form-reset target. |
onValueChange | (value: string) => void | — | — |
readOnly | boolean | | Focusable and submitted, but selection cannot change. |
required | boolean | | — |
Last updated on