EDS4 logo
@eds/toast
v4.0.24

Toast

A brief notification that doesn't disrupt or require an action.
Prop
Required
Description
Type
message

The message to display. Note: use the toastMessage helper function.

symbol
tone

Different tone styles for the Toast.

"positive" | "critical"
hasCloseButton

Whether or not to show the close X icon button. Defaults to true.

boolean
linkText

Text to show as the link. Note: this must accompany a linkHref string.

string
linkHref

href to navigate to on click of the link. Note: this must accompany a linkText string.

string
buttonText

Text to show on the button. Note: this must accompany an onClickButton function.

string
onClickButton

Callback to run on click of the button. Note: this must accompany an buttonText string.

() => void