#API
Form
props
Name | Description | Type | Default | Values | Required |
|---|---|---|---|---|---|
autoValidate | Runs validation on all registered fields before emitting submit. | Boolean | true | ||
autoFocus | Focuses the first registered field when the form mounts. | Boolean | true | ||
disabled | Disables all fields inside the form fieldset. | Boolean | false | ||
errors | External field errors (`field` + `msg`) applied to registered inputs. | Array Object | () => [] | ||
title | Optional title shown in the default header. | String | |||
description | Optional description shown under the title in the default header. | String | |||
hasFooter | Renders the footer slot area for form actions. | Boolean | true |
slots
Name | Description |
|---|---|
default | Form fields and content inside the fieldset. |
header | Custom header; overrides the default title/description block. |
footer | Custom footer; wraps primary and secondary actions by default. |
primary-action | Primary action control in the default footer. |
secondary-action | Secondary action control in the default footer. |
emits
Name | Description |
|---|---|
submit | Emitted on form submit with whether validation passed. |
methods
Name | Description |
|---|---|
validate | Validate all registered fields; focuses the first invalid field. |
submit | Programmatically submit the form (runs auto-validate when enabled). |