Skip to main content

<tl-cart-drawer>

HTML tag<tl-cart-drawer>
Reactimport { TlCartDrawer } from '@ticketlayer/elements-react'
CategoryCart
Runs inweb (browser DOM)

Properties

PropertyAttributeDescriptionTypeDefault
headingheadingHeading shown at the top of the panel.string'Your cart'
openopenControlled open state (also driven by the ui:cart-requested intent).booleanfalse
sidesideEdge the panel slides in from."left" | "right"'right'

Events

EventDescriptionType
tlCloseCustomEvent<void>
tlOpenCustomEvent<void>

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-cart>