Skip to content
Docs
Reference

<tl-seat-card>

One seat as a card: the view from it when there are views, the row and number, the section, the price, whether it is free or held, and for a held seat its ticket type to change.

HTML tag<tl-seat-card>
Reactimport { TlSeatCard } from '@ticketlayer/elements-react'
CategoryPurchase
Runs inweb (browser DOM), native (planned React Native set)

One seat as a card: the view from it when there are views, the row and number, the section, the price, whether it is free or held, and for a held seat its ticket type to change. The seat explorer pins one beside a tapped seat, never over it. Compact, it says all of that in two lines beside a thumbnail of the view.

Properties#

PropertyAttributeDescriptionTypeDefault
compactcompactTwo lines and a thumbnail of the view: the seat and price, then the section, category and state on one line. The seat explorer uses it in staff mode, so a pinned card leaves most of the map in viewbooleanfalse
eventIdevent-idThe event, for its prices; without it the prices the page has already readstring | undefinedundefined
occurrenceId (required)occurrence-idThe occurrence the seat belongs tostringundefined
pinnedpinnedPinned beside a tapped seat: it shows the ticket type and a close buttonbooleanfalse
seatseatThe seat, by its index in the venue plan versionnumber-1
staffstaffBox office mode, on a client that offers the staff capabilities: the seat says what it is to staff, a hold by its namebooleanfalse
unstyledunstyledRender into the light DOM with no stylesheet, for a page that styles the element itself: every node carries a tl-seat-card__* class. Without it the element is styled, and each node is a ::part() of the same name.booleanfalse

Events#

EventDescriptionType
tlCloseThe buyer closed a pinned cardCustomEvent<void>
tlViewRequestedThe buyer asked to see the view from the seat (the picture)CustomEvent<{ seat: number; }>

Events are CustomEvents; the payload is on event.detail. In HTML, listen with element.addEventListener('tlXxx', handler); in React the wrapper exposes each one as an onTlXxx prop.

Renders: <tl-price-picker>

Used by: <tl-seat-explorer>