base-ui-svelte

Fieldset

A group of related form fields with a legend.

View as Markdown
Shipping

API Reference

Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also accepted unless noted.

Fieldset.Root

Groups a shared legend with related controls. Renders a <fieldset> element.

Props

disabled boolean false
Description

Whether the control ignores user interaction.

Type
boolean
Default
false
children snippet —
Description

Content rendered inside the part.

Type
Snippet<[{ disabled: boolean }]>

Data attributes

AttributeDescription
data-disabledPresent when the part is disabled.

Fieldset.Legend

An accessible label that is automatically associated with the fieldset. Renders a <div> element.

Props

children snippet —
Description

Content rendered inside the part.

Type
Snippet

Data attributes

AttributeDescription
data-disabledPresent when the part is disabled.