import { Meta } from '@storybook/addon-docs/blocks'

<Meta title="Guide|Toast" />


# Toast messages

These messages are connected to the context of the content and are used to display system messages. The messages are short and straightforward. It may contain a dismiss button, and an action button depending on the situation.

If left alone, toasts without actions will automatically disappear after 10 seconds.

### Do's

- Stack toast messages if more than one are displayed on the screen at once.
- Add an additional action button if appropriate.
- Always show a dismiss button.
- Avoid using for irreversible actions.
- Avoid using more than 2 lines of text for the toast message.

### Dont's

- Dismiss a toast message prematurely if another toast is introduced.
- Add more than one extra button in addition to the “Dismiss” button.
- Remove a user’s ability to manually dismiss the message.
- Use for actions that will result in permanent deletion.
- Use toast messages for messages that are longer than 3 lines of text.