Callout
EuiCallOut
contains a message directly related to content on the page. This includes general information, success, warning, and error messages.
Keep these guidelines in mind:
- Minimize the number of callouts per page.
- Stack callouts in the order in which they require users' attention: error, warning, info, and then success.
- Offer only one action per callout and ensure it's an action users can perform quickly.
- If the callout has a permanent spot in the UI, but needs to be less obstructive, set the
size
property tos
(small). - Use an
icon
prop if it adds context.
Info
Use EuiCallOut
to communicate general information to the user.
Here’s some stuff that you need to know. We can make this text really long so that, when viewed within a browser that’s fairly narrow, it will wrap, too.
And some other stuff on another line, just for kicks. And here’s a link.
Success
Use this callout to notify the user of an action that succesfully completed. Use success callouts sparingly—callouts are typically used for things that are broken rather than things that succeed.
I have no news. Which is good! And here’s a link.
Warning
Use this callout to warn the user against decisions they might regret.
Here be dragons. Don’t wanna mess with no dragons. And here’s a link.
Link buttonDanger
Use this callout to let the user know that something went wrong.
Now you have to fix it, but maybe this link can help.