To provide feedback such as success, warning, error etc.
To confirm an action.
To incite the user to take an action, if this action does not require to interrupt the user flow.
Content
Be short. Limit your content to one sentence when possible.
Provide a path of action. Don't let the user wonder what's next.
Use copy that is easily scannable.
Link to the appropriate documentation when additional context is needed.
Accessibility
Text should be descriptive and complete enough to be understood without relying on the icon. Using an icon to carry information will make it non-accessible.
Message vs Alert
If the user flow has to be interrupted, use an alert.
Usage
Default
A default message.
We offer the safest space travel of the industry!
Editable example
<Message>We offer the safest space travel of the industry!</Message>
Rich content
A message can also accept rich content.
Travel with us!
We offer the safest space travel of the industry. Consult our safety policy here.
Editable example
<Message>
<Content>
<Heading>Travel with us!</Heading>
We offer the safest space travel of the industry. Consult our safety policy{" "}