Components
BaseFormFeedback
The message above a form: a server error, a success or the summary of invalid fields.
components/ui/form/BaseFormFeedback.vue
View in the demo
Example
We could not save your changes.
Your changes were saved.
Check 3 fields before saving.
review: 0
It renders nothing without a message, so you can always leave it in the form. Use it instead of a hand-written BaseAlert.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
error | string | null | — | The general error, usually formError from useFormSubmit(). |
success | string | null | — | A success message. |
error-count | number | — | Number of invalid fields. Without error, it shows the summary with a button to review them. |
Events
Name | Payload | Description |
|---|---|---|
@review | — | The user pressed the review button; call focusNextError(). |