Component changelog

Toast changelog

Component-specific release notes collected from the full changelog. This page filters the published entries that mention Toast.

Release

v1.2.0

npm
Minor Changes
  • d706421: Anchored toasts: pass anchor (an element, virtual element, ref or function) to toast() to show it beside that element instead of in the stack, e.g. "Copied" next to a copy button. side, align, sideOffset and alignOffset place it (default: 8px above, centered) with collision handling. It announces like other toasts, closes on its timer (paused while hovered or focused), on Escape and with close(id), and doesn't take a place in the stack. Toaster renders them; with your own Toast.Provider, render <Toast.AnchoredToasts /> once.

  • a265579: Toasts can be swiped left and right as well as up and down. Set swipeDirection on a toast (one direction or a list) to choose its dismiss directions; it overrides the provider's swipeDirections. A toast swiped sideways slides out to that side, and the toast element gets data-swipe-direction (its allowed directions) and data-swipe-out (the direction it was dismissed in).

Patch Changes
  • 589f4baToast: the hotkey prop now works. Alt+T (Option+T) moves focus to the toasts by default, so keyboard users can reach their actions before they time out; an empty array turns it off, and the viewport exposes it as aria-keyshortcuts. Escape dismisses the focused toast and keeps focus in the viewport, and Escape on the viewport returns focus to where the hotkey was pressed.

Release

v1.1.0

npm
Patch Changes
  • 0af1268: fix: Drawer focus management and stable Toast manager functions

    • Drawer: focus now moves into the drawer when it opens, and Tab stays trapped inside. The focus manager used to engage as soon as data-state flipped to open, but the themes keep the popup visibility: hidden until the entrance transition starts. Initial focus found nothing focusable and silently failed, so keyboard and screen-reader users were left on the page behind the modal. It now waits until the popup is actually visible (capped at about 0.5s).
    • Toast: the functions from useToastManager() (add, close, update, promise, dismiss, dismissAll and the variant helpers) are stable for a given manager, as in Base UI. They used to be recreated on every render. An effect keyed on one of them, such as an unmount cleanup calling dismissAll, then re-ran on every render and dismissed each toast as soon as it was added.

Release

v1.0.0

npm
Patch Changes
  • 88c11a3docs(toast): add keyboard interaction and ARIA reference tables

Release

v0.6.0

npm
Minor Changes
  • 1535c08new toast component