API Reference
Espalier exports a rich set of TypeScript types alongside its components. These cover event detail payloads, bus event maps, and utility functions that make working with the library fully type-safe.
Event Name Constants
- ESP_EVENTS — Canonical string constants for every CustomEvent in the library.
Event Detail Types
- ColorValueChangedDetail
- EspAccordionChangeDetail
- EspSubmitDetail
- EspSubmitErrorDetail
- EspSubmitResponseDetail
- EspTabChangedDetail
- EspToggleDetail
- ImagesReorderedDetail
- ResultSelectedDetail
- SearchRequestedDetail
- ToggleValueChangedDetail
Bus Event Maps
- EspBusEventMap — Merged map of every event on the singleton bus.
- SchemeEvents — Theme coordination events.
- ToastEvents — Toast notification events.
- PopoverEvents — Cross-popover coordination events.
- SizeEvents — Screen size events.
- PageEventMap — Page-level layout events.
- SeedColorRoot — Contract for seed color providers.
Functions
Configuration
- ToastConfig — Configuration object for toast notifications.