Radio

A set of radio form inputs for single-choice user selection

<RadioGroup>

import { RadioGroup } from '@strum/react';
name
type
default
error
string
-
label
string
-
onChange
((value: string) => void) & FormEventHandler<HTMLDivElement>
-
ref
Ref<HTMLDivElement>
-
value
string
-

Radio groups take an optional label prop which will display text to describe the grouping.

Disabled state
Link to this heading

Controlled input
Link to this heading

To control your radio group with React, simply include a value boolean prop and a onChange function prop.