mica

Example

Profile
Billing (disabled)

Basic usage

<fieldset disabled>
  <legend>Billing</legend>
  …
</fieldset>

API

fieldset and legend are native grouping elements. Group naming, disabled propagation, form behavior, and accessibility are the HTML API; Mica adds a plain, unboxed presentation.

Content/markup contracts

ContentContractDefaultDescription
legendgroup captionNames the related controls. Keep it as the fieldset's caption rather than a decorative heading.
Controlsfieldset descendantsenabledThe native disabled attribute silences the grouped controls; Mica also dims the group.

Styling

TargetValueDefaultDescription
fieldsetnative elementno border or paddingUse layout primitives such as m-vstack to space the contents.
legendnative elementsection-heading emphasisReceives stronger weight and space below it.
← switchfield validation →