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 throughsubmit(). 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.
