Components/Feedback
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/navigationtoast
Navigation toast is a toast with a single link that takes users to a related page or place, such as their settings or back to the top of a list. It stays on screen until users dismiss it, unless you set a duration.
<StatusToast/> instead.Control whether navigation toast can be dismissed by a user with dismissible prop.
Define prefix icon with prefixIcon prop.
Define if toast should disappear automatically with duration prop.
By default, toast is persistent and duration is set to 0 milliseconds.
| Name | Type | Default | Description |
|---|---|---|---|
children (required) | ReactNode | — | Content to display in the toast. |
dataHook | string | — | Applies a data-hook HTML attribute that can be used in the tests. |
dismissible | boolean | — | Whether the toast should render the dismiss button. |
dismissLabel | string | — | Aria label for the dismiss button. |
duration | null | number | 0 | Time in milliseconds before the toast dismisses automatically. When set to 0 or null, the toast remains indefinitely. |
id | string | — | Sets the id HTML attribute of the toast root element. |
onAction | MouseEventHandler | — | Callback triggered when the toast action is performed. |
onDismiss | (event?: MouseEvent<Element, MouseEvent> | undefined) => void | — | Callback function called whenever the user clicks the dismiss button. |
prefixIcon | false | IconElement | <Icons.ArrowBentUpLeft /> | Custom icon displayed at the start of the toast content. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
getContent | Retrieves the content of the toast. |
getRole | — |
getAriaLive | — |
isVisible | — |
isDismissible | — |
getDismissButton | — |
dismissButton | — |
exists | Checks whether the component found with the given data hook. |
element | Gets the component root element. |
click | Clicks on the component root element. |
base | Returns UniDriver for the base element. |
Last updated: 22 October 2026