Velocity X Components

Forms

Form Success/Error State Panel

Post-submit status panel with success, error, and pending states for the host to swap in after a submission resolves.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add form-success-error-panel

Built for astro.

Full docs for Form Success/Error State Panel →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.0
Form Success/Error State Panel

You're all set

Thanks — we've got your submission and will be in touch shortly.

Something went wrong

We couldn't submit that just now. Nothing was saved — please try again.

Try again

Props

NameTypeRequiredDefaultDescription
state'success' | 'error' | 'pending'No'success'
headingstringNo
messagestringNo
retryLabelstringNo'Try again'
retryHrefstringNo'#'
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/form-success-error-panel/FormSuccessErrorPanel.astro

Using the Form Success/Error State Panel component

Install it with velocityx add form-success-error-panel. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Forms.