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

Bus Event Maps

Functions

  • getEspBus — Typed accessor for the singleton bus.
  • showToast — Show a toast notification.

Configuration

  • ToastConfig — Configuration object for toast notifications.

Where does this show?