Toast

The Toast component provides a reusable pattern for toast in the interface.

Basic

Basic toast examples.

Here are examples!
This message has an action button and may be dismissed, it will not dissapear automatically.
This message may be dismissed, it will not dissapear automatically.
This has a button to do a task but no dismiss action and will have double the time for hidden.
This neither has a button, or a dismiss and will be hidden first.

API

Parameter Default Description
bottom-left Position of the toast: top-left, top-right, bottom-left, bottom-right.

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.

Similar components