RadioGroup
RadioGroup — Prism component.
Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggleWhen to use
RadioGroup — Prism component.
Accessibility
Always render a visible <label> (the label prop wires htmlFor/id for you). Errors set aria-invalid and are announced via aria-describedby. Required fields expose aria-required.
Import
const { RadioGroup } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | — | |
description | string | — | |
value | string | — | Controlled selected value. |
defaultValue | string | null | — | |
onChange | (value: string, e: React.ChangeEvent) => void | — | |
name | string | — | |
isDisabled | boolean | — | |
children | React.ReactNode | — | Radio children. |
className | string | — |