Skip to main content

RadioGroup

RadioGroup — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When 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

PropTypeRequiredDescription
labelstring
descriptionstring
valuestringControlled selected value.
defaultValuestring | null
onChange(value: string, e: React.ChangeEvent) =&gt; void
namestring
isDisabledboolean
childrenReact.ReactNodeRadio children.
classNamestring