base-ui-svelte

Form

A form root that coordinates field validation and submit handling.

View as Markdown

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.

Form

Extends form HTML attributes.

PropertyTypeDefaultDescription
errorsFormErrors | undefined
onFormSubmit((formData: FormData, event: SubmitEvent) => void) | undefined
childrenSnippetContent rendered inside the part.