Booking confirmation
A Stripe-style confirmation: a success mark, an itemised receipt that adds up to the total, numbered next steps, and an event ticket with a coloured stub and entry code.
bunx --bun @getweini/cli@latest add button card copy-button linkCustomize
- Pass the purchase as `order`: `reference`, `date`, `total`, `email`, and optionally `items`, `tax`, and `payment`. Amounts are preformatted strings, so format currency with your own locale tools and make sure the lines add up to the total.
- Pass the event as `ticket`, or `null` for a plain receipt; the layout then centres the message and receipt.
- The block emits `download`, `calendar`, and `viewOrder`. Set `downloading` while the ticket file is prepared; the primary action shows progress and cannot be pressed twice.
- The QR-like pattern is decorative SVG drawn from `ticket.code` inside a `.light` scope, so it stays dark on light in either theme. Replace the `qr` slot with a real code to make it scannable.
- Set the next steps with `copy.steps` (title and detail); keep them to three. Below 1024px the ticket follows the actions; on wide screens it sits beside the message and stays in view.
- All text lives in `copy`. The order reference has a `CopyButton` with its own announcements in `copy`.