Forms
Fieldset
A titled section of a form. Use to break long forms into scannable groups; columns={2} for short paired fields.
When to use
Group related fields in a long form under a heading (Shipping address, Billing).
Use something else
Short form with 3–4 fields → no Fieldset needed.
Do
- Give each section a clear
legendand optional one-linedescription. - Use
columns={2}only for short, related fields (City / Postcode).
Don't
- Don't nest Fieldsets.
Props
| Prop | Type |
|---|---|
legend required | string |
description | string |
columns | 1 | 2 |
children required | React.ReactNode |
Use
const { Fieldset } = window.Tessera;
const el = React.createElement(Fieldset, { /* props */ });