Basic
To encourage extensible and predictable toasts, we recommend a header and body.
Toast headers use display: flex
, allowing easy alignment of
content thanks to our margin and flexbox utilities.
Placement
Place toasts with custom CSS as you need them. The top right is often used for notifications, as is the top middle. If you’re only ever going to show one toast at a time, put the positioning styles right on the .toast.