Skip to content

LiveToast v0.9.0

Latest

Choose a tag to compare

@srcrip srcrip released this 24 Jul 19:30
v0.9.0
d6e169f

Highlights

  • Add a browser JavaScript API: addToast/3 requests server-rendered toasts from frontend code.
  • Add programmatic dismissal with LiveToast.dismiss_toast/2 and the composable LiveToast.dismiss/1 action for custom components.
  • Pause timed toasts while hovered or focused, then resume with their remaining duration.
  • Support persistent toasts with duration: 0 or :infinity.
  • Add :top_center and :bottom_center host positions.
  • Allow a default custom toast component function on toast_group, with per-toast overrides.
  • Pass application metadata through to custom toast components.
  • Make connection-state notices customizable, replaceable through slots, or fully disableable.
  • Add recipes and documentation for the new APIs and customization paths.