fieldset
A titled group, not a bordered box. Disabling one silences everything inside.
Example
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
| Content | Contract | Default | Description |
|---|---|---|---|
legend | group caption | — | Names the related controls. Keep it as the fieldset's caption rather than a decorative heading. |
| Controls | fieldset descendants | enabled | The native disabled attribute silences the grouped controls; Mica also dims the group. |
Styling
| Target | Value | Default | Description |
|---|---|---|---|
fieldset | native element | no border or padding | Use layout primitives such as m-vstack to space the contents. |
legend | native element | section-heading emphasis | Receives stronger weight and space below it. |