Session Services
Documentation

Ticketing Element Reference

Properties, events, and theming for the Session Services Ticketing element.

Properties

PropertyTypeRequiredDefaultDescription
tenantIdstringYesTenant ID used to scope API requests
eventIdstringYesEvent ID to load ticketing information
apiUrlstringNohttps://api.session.servicesBase API URL
localestringNoen-USLocale for date/time/currency
returnUrlstringNoURL to redirect after checkout
theme'light' | 'dark' | 'system'NosystemVisual theme; system follows OS

Use kebab-case in HTML (tenant-id) and camelCase in React (tenantId).


Events

EventDetailDescription
cartUpdateOrderQuoteFires when the cart changes
checkoutInit{ orderId: string; checkoutUrl: string }Fires when checkout begins
errorOccurred{ error: string }Fires if a recoverable error occurs

Example (Web):

<sessions-ticketing tenant-id="t_123" event-id="evt_123"></sessions-ticketing>

Theming

Customize styles with CSS variables (design tokens).
Works in both Web Components and React (pass CSS variables via the style prop in React).

Minimal Example

sessions-ticketing {
  --card: #ffffff;
  --card-foreground: #111827;
  --primary: #ec4899;
  --primary-foreground: #ffffff;
  --muted-foreground: #6b7280;
}

Complete Variable List

Core surfaces and text

  • --background: Host background (defaults transparent)
  • --foreground: Primary text
  • --card: Card/section background
  • --card-foreground: Text on card
  • --popover: Overlay background (reserved)
  • --popover-foreground: Overlay text (reserved)

Actions and accents

  • --primary, --primary-foreground
  • --secondary, --secondary-foreground
  • --accent, --accent-foreground

Muted and feedback

  • --muted, --muted-foreground
  • --destructive
  • --border, --input, --ring

Layout and shape

  • --radius
  • --spacing-xs … --spacing-xl

Typography

  • --font-family
  • --font-size-xs … --font-size-2xl
  • --font-weight-normal … --font-weight-bold

Shadows and motion

  • --shadow-sm … --shadow-xl
  • --transition-fast … --transition-slow