Skip to main content

<tl-checkout-wrapper>

HTML tag<tl-checkout-wrapper>
Reactimport { TlCheckoutWrapper } from '@ticketlayer/elements-react'
CategoryCheckout
Runs inweb (browser DOM)

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledWhether the wrapper is disabledbooleanfalse

Events

EventDescriptionType
tl-closeEmitted when the modal closesCustomEvent<void>
tl-completeEmitted when checkout 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 checkout button)