mica

Example

Basic usage

<label><input type="checkbox" checked /> Remember me</label>

API

This is a native input type="checkbox". Checked, disabled, indeterminate, events, and form behavior remain native; Mica adds only presentation.

Content/markup contracts

ContentContractDefaultDescription
labelwrap the input or use forProvides the accessible name and click target. A wrapping label dims with its disabled control.

Styling

StateNative sourceDefaultDescription
CheckedcheckedfalsePrimary fill with a glyph.
IndeterminateHTMLInputElement.indeterminatefalsePrimary fill with a drawn dash. Set this native property from script.

Notes

Checked is primary fill + glyph; indeterminate is a drawn dash. A label wrapping the control becomes the click target and dims when disabled.

← selectradio →