Oddmash UI
All components

Radio

Choose one option from a group.

Usage

Give mutually exclusive options the same name and distinct values.

Accessibility

Use a fieldset and legend to announce the group. Arrow keys select within the group.

PropertyTypeDefault
namestringNone
<Field legend="Event order">
  <div>
    <label><Radio name="order" value="newest" defaultChecked /> Newest first</label>
    <label><Radio name="order" value="oldest" /> Oldest first</label>
  </div>
</Field>

Interactive documentation