For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /examples/checkout-form.md.

Checkout Form

A three-step checkout with a shipping address, a payment method and an order summary, under a progress bar.

Built with the UI components: Progress, Input, Select, Radio Group, Checkbox, Card, Label, Separator and Button.

What it shows

  • Steps from one signal — step() picks the visible section with @if. computed() turns it into the progress value and the step label.
  • Signal Forms — one signal holds the whole order, a group of fields for each step, and form() turns it into fields. Each Input, the Select, the Radio Group and the Checkbox binds one with [formField], and Place Order goes through submit(). See Forms.
  • Conditional fields — the card number, expiry and CVV fields appear only while the payment method's field is card.
  • Order summary — a Card lists the items, with a Separator above the total.