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
Minor Changes
-
d706421: Anchored toasts: pass
anchor(an element, virtual element, ref or function) totoast()to show it beside that element instead of in the stack, e.g. "Copied" next to a copy button.side,align,sideOffsetandalignOffsetplace 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 withclose(id), and doesn't take a place in the stack.Toasterrenders them; with your ownToast.Provider, render<Toast.AnchoredToasts />once. -
a265579: Toasts can be swiped left and right as well as up and down. Set
swipeDirectionon a toast (one direction or a list) to choose its dismiss directions; it overrides the provider'sswipeDirections. A toast swiped sideways slides out to that side, and the toast element getsdata-swipe-direction(its allowed directions) anddata-swipe-out(the direction it was dismissed in).
Patch Changes
- 589f4baToast: the
hotkeyprop 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 asaria-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
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-stateflipped toopen, but the themes keep the popupvisibility: hiddenuntil 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,dismissAlland 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 callingdismissAll, then re-ran on every render and dismissed each toast as soon as it was added.
- Drawer: focus now moves into the drawer when it opens, and Tab stays trapped inside. The focus manager used to engage as soon as
Release
v1.0.0
Patch Changes
- 88c11a3docs(toast): add keyboard interaction and ARIA reference tables
Release
v0.6.0
Minor Changes
- 1535c08new toast component