Buyer SDK
The dependency-free Web Component owns rendering, accessibility controls, selection rules, synchronization, and error presentation inside Shadow DOM.
Attributes
| Attribute | Purpose |
|---|---|
event-id | Event occurrence identifier |
api-base-url | HTTP API origin |
api-key | Optional credential accepted by the SDK API |
ws-url | Optional realtime URL override |
max-selection | Positive selection limit |
theme | light, dark, high-contrast, or omitted for system preference |
Events
seat-selected and seat-deselected carry a seat ID. selection-change carries all selected IDs. state-change reports lifecycle transitions, while error reports a code and message.
Methods and properties
Use selectedSeats and state for current read-only state. Use retry() and clearSelection() for explicit recovery and cleanup.