Skip to content

Reference

This section documents the @samline/drawer@3.0.0 public surface and its current runtime behavior. Pages are grouped by configuration, API, types, browser usage, styling, and examples.

  • Configuration — every CommonDrawerOptions and VanillaDrawerOptions field, including 3.0.0 defaults and deprecated aliases.
  • API — signatures, registry behavior, lazy mount lifecycle, callbacks, and teardown.
  • TypeScript — root type exports, structural shapes, constants, and the browser-only API type.
  • Browser global — separate CSS + JS CDN setup for window.Drawer.
  • CSS styling — the full DOM/data-attribute contract, inline writes, and global effect ownership.
  • Examples — end-to-end recipes for common real-world scenarios.