Skip to main content

<tl-buy-tickets-wrapper>

HTML tag<tl-buy-tickets-wrapper>
Reactimport { TlBuyTicketsWrapper } from '@ticketlayer/elements-react'
CategoryPurchase
Runs inweb (browser DOM)

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledWhether the wrapper is disabledbooleanfalse
eventId (required)event-idThe event ID to purchase tickets forstringundefined
occurrenceIdoccurrence-idOptional specific occurrence ID (skips occurrence selector)string | undefinedundefined

Events

EventDescriptionType
tl-closeEmitted when the modal closesCustomEvent<void>
tl-completeEmitted when purchase completes successfullyCustomEvent<OrderResult>
tl-errorEmitted when an error occursCustomEvent<{ message: string; }>

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.

Slots

SlotDescription
Content to display (typically a button)