Skip to content
Docs
Reference

<tl-checkout-wrapper>

Wrap any content and open the checkout modal when it is activated.

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

Wrap any content and open the checkout modal when it is activated.

Wraps any content and opens the Ticketlayer checkout modal when clicked. Uses the SDK's modal manager which handles the iframe overlay.

Properties#

PropertyAttributeDescriptionTypeDefault
disableddisabledWhether the wrapper is disabledbooleanfalse

Events#

EventDescriptionType
tlCloseEmitted when the modal closesCustomEvent<void>
tlCompleteEmitted when checkout completes successfullyCustomEvent<OrderResult>
tlErrorEmitted 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)