Forms
Fieldset
Groups related form controls and labels under a shared accessible legend.
idle
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Account profile
Related personal details belong in one fieldset.
Managed billing
Keep unavailable settings visible and explain who can edit them.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Use a legend that describes the shared question. Keep individual control labels inside the group. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use Field for one control. A visual panel alone does not establish a form group. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | false | Whether the fieldset and its child controls should ignore user interaction. |
| | — | Custom element or component render function for polymorphic composition. |
| | — | React ref forwarded to the underlying element. |
| | "fieldset" | Root container grouping shared legend and related form controls. |
| | "div" | Accessible legend associated with the fieldset; styled with semantic content foreground and semibold weight. |
| | — | Low-level Base UI fieldset primitive namespace. |