Skip to content
kapable

RadioGroup

Forms · 1 export · v0.1.0 · showcase

Native radio choices grouped by a real fieldset and legend.

Browse 72 component families
Environment

Usage

RadioGroup usage
<RadioGroup label="Environment" name="env" options={environments} />

API

RadioGroup API

RadioGroupProps

RadioGroup props
proptypenotes
labelstringGroup label — rendered as the real `<legend>`.
namestringShared form field name.
optionsRadioOption[]
defaultValue?stringValue checked on first render (uncontrolled).
required?booleanMarks the group required (native `required` on its radios).
disabled?booleanDisables every option.
hint?stringGroup-level assistive hint; joins `aria-describedby`.
error?string | nullGroup-level error; `status.fail`, `role="alert"`, sets `aria-invalid`.
orientation?'stack' | 'row''stack' (default) or 'row' — row wraps on narrow screens.
mix?MixInputComposition passthrough for the fieldset.

More in Forms

More in Forms