Choose seats on the illustrated theatre plan or by row, then review the selection and its total.
Theatre booking · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
venuestring
Venue label. Defaults to Opéra de Lille. The illustrated geometry is fixed.
pricesPartial<Record<TheatrePriceBand, number>>
Price in EUR cents for each color band as a nonnegative safe integer. Omitted bands use example prices. An invalid explicit price makes that band unavailable.
unavailableSeatsreadonly string[] | null
Unavailable layout IDs, such as S-A2 or B1-E38. Use [] when all seats are available or null when the inventory cannot be read. Omission leaves the example plan open.
reservedSeatsreadonly string[]
Confirmed layout IDs for the current customer. These stay highlighted on the map and in Your seats. Omit for local confirmation after onReserve succeeds.
Receives a validated selection with each seat ID, level, row, number, band and priceCents, plus totalCents. Resolve after the host confirms and commits the reservation. Publish the updated unavailableSeats and reservedSeats when controlled. Reject if availability or prices changed.
Data and integration
Preview
Example availability and five price bands on the illustrated hall plan.
Inputs
Supply unavailableSeats as layout IDs. S identifies stalls and B1–B3 identify balconies, followed by the row letter and seat number, such as B1-E38. Use a list of unavailable layout IDs, or null when the inventory cannot be read. Supply prices for gold, rose, sky, violet and green as nonnegative safe integers in EUR cents. Optional reservedSeats identifies confirmed seats belonging to the current customer.
Source options
Map real venue seat IDs to this fixed plan before displaying live availability. The host provides the current price bands and ticketing state. Supply explicit prices for every band when connected to real inventory.
Actions
Choose a level and tap a seat or use the arrows and Enter on the plan. Choose by row and Your seats open scrollable sheets for adding, removing and reviewing selected and confirmed seats. The price button opens the band list. Close with Done, Escape, or a downward drag through half the sheet height.
Integration requirements
Missing price bands use example prices. Invalid explicit prices disable seats in the affected band. Seats that become unavailable are removed from the selection. onReserve receives unique seats with canonical layout metadata and priceCents, plus the sum in totalCents. Recheck availability and pricing against the venue's inventory and commit the complete selection atomically. Resolve on success and publish updated availability and any controlled reservedSeats. Without reservedSeats, confirmed seats stay highlighted for the lifetime of the widget. Reject failures to retain any eligible seats for retry.