Ticket Mix Editor
Per-ticket-type quantity selectors with per-unit pricing and running total. Enforces min/max total quantities and shows ConstraintMessage hints.
core/ticket-mix-editorInstallation
1 · Add registry to components.json
2 · Install component
Examples
Default
Standard mix with running total, with policy note, and without total.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
ticketTypesreq | TicketType[] | — | Available ticket categories with price per unit. |
valuereq | TicketSelection[] | — | Current selection — quantities per ticket type. |
onChangereq | (value: TicketSelection[]) => void | — | Called when any quantity changes. |
minTotal | number | 1 | Minimum total tickets required. |
maxTotal | number | — | Maximum total tickets allowed. |
note | string | — | Policy note shown beneath the ticket list. |
showTotal | boolean | true | Whether to show the running cost total footer. |