Toast
Be sure to read the full
toast usage guidelines.Toast list
Default
EuiToast allows for small notes that appear in the bottom right of the screen. They should be used for ephemeral, live actions (think save complete or something just finished right now).
They should not be used for historical actions (your report built 30 minutes ago). This means that a user should never be greeted with toasts when starting a session. Toasts should be brief and avoid long paragraphs of text or titling.
Info
For informative messages use
type="info"
.
Success
For success messages use color="success"
.
Warning
Use this callout to warn the user against decisions they might regret. Show a warning message when the program detects that something is not behaving right, but it didn't cause any termination. For warning messages use color="warning"
.
Danger
Use this callout to let the user know that something went wrong. For example if you want to communicate an error. You should show an error message when the issue is terminal, this doesn't always mean that the operation stops completely, but the task is not complete. For errors messages use color="danger"
.
Props
EuiToast
Prop | Description and type | Default value |
---|---|---|
Prop title# | Description and type Type: ReactNode | Default value |
Prop color# | Description and type Type: "primary" | "success" | "warning" | "danger" | Default value |
Prop iconType# | Description and type Type: IconType | Default value |
Prop onClose# | Description and type Type: () => void | Default value |
Prop className# | Description and type Type: string | Default value |
Prop aria-label# | Description and type Type: string | Default value |
Prop data-test-subj# | Description and type Type: string | Default value |
Prop css# | Description and type Type: Interpolation<Theme> | Default value |
EuiGlobalToastList
Prop | Description and type | Default value |
---|