FormsQuoteSteps

Open in Create
Search
astronomic.dev

QuoteSteps

Pro

For a longer quote form: the same form in steps, with Next and Back, that checks each step and still works as one long form with no script.

File
QuoteSteps.astro
Group
Forms
Kind
Interactive: inline script
Examples
4
import QuoteSteps from "@astronomic/ui-pro/components/QuoteSteps.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

A quote in three steps

Tilth & Stone's quote form, a plain post: services as option chips, the yard, then the reader's details. Next checks the step before it moves on, Back keeps every value, and the Form's own button shows on the last step. With no script it is one long form.

main.astro

Sent in the page

On a Form with enhance="fetch": each step's errors show under its fields as the Form's do, and are cleared as soon as a field is fixed. On the last step, a bad field in an earlier step opens that step first. After a good send the form resets to step 1 and the status says it. progressText sets the progress line's words.

fetch.astro

Step pills

progress="pills": a numbered pill per step (its number and title) in place of the bar. The current pill is inverted and each done one keeps its number in the accent; the progress line stays for a screen reader only.

pills.astro

One step

With one QuoteStep there is no progress line and no Back or Next: a plain form with a fieldset named by its heading.

one-step.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.