mica

Example

Basic usage

<label><input type="radio" name="r" checked /> One</label>
<label><input type="radio" name="r" /> Two</label>

API

These are native input type="radio" controls. Naming, selection, keyboard interaction, events, and form behavior are the HTML API; Mica adds presentation.

Content/markup contracts

ContentContractDefaultDescription
Radio groupshared name, distinct valuesNative grouping makes the choices mutually exclusive. Associate each radio with a label.

Styling

StateNative sourceDefaultDescription
Uncheckednative stateinitialMuted pip.
CheckedcheckedfalseBright pip on primary fill.

Notes

The checked-state grammar across the family: checkbox = fill + glyph, radio = fill + pip, switch = fill + block. The round radio is a two-line theme (see mica.css).

← checkboxsegmented control →