Sakani

Radio

One choice out of a set. Group options by giving them a shared name.

With descriptions

Descriptions carry the trade-off between options, which is usually what the choice actually turns on.

States

Controlled

Selected: growth

Props

Every other native input attribute is forwarded to the underlying <input type="radio">.

PropTypeDefaultDescription
labelstringText rendered beside the dot.
descriptionstringSupporting line under the label.
namestringShared across a group; this is what makes the options mutually exclusive.
checkedbooleanControlled selected state.
defaultCheckedbooleanUncontrolled initial state.
disabledbooleanfalseDisables the input.
onChange(e: ChangeEvent<HTMLInputElement>) => voidFires on select.