Radio
Squircle radio button in three sizes. Works controlled or uncontrolled. For groups, manage state externally and pass the same name to each radio.
Installation
npx stepwise-ui add radio
States
Sizes
Group
Track selected value in useState and pass checked as a comparison. Wrap the radio inside a custom label for richer content.
Disabled
Props
PropTypeDescription
size"sm" | "default" | "lg"16 / 20 / 24 px. Default: "default".
labelstringText label next to the radio.
checkedbooleanControlled checked state.
defaultCheckedbooleanInitial state when uncontrolled.
disabledboolean40% opacity, blocks interaction.
namestringInput name - groups radios in native forms.
onChange(e: ChangeEvent) => voidChange handler - receives the native event.