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

Extends fieldset HTML attributes.

PropertyTypeDefaultDescription
disabledbooleanfalseWhether the control ignores user interaction.
childrenSnippet<[{ disabled: boolean }]>Content rendered inside the part.
Data attributeDescription
data-disabledPresent when the part is disabled.

Fieldset.Legend

Extends HTML attributes for the rendered element.

PropertyTypeDefaultDescription
childrenSnippetContent rendered inside the part.
Data attributeDescription
data-disabledPresent when the part is disabled.