Message

An inline message toned by severity, for alerts and context.

Severities

severity sets the tone and the default icon: info and help to explain, success, warning and danger to report.

Icon

icon replaces the default with any Phosphor icon component; iconSize takes an Icon size or a number of pixels.

Content

Children can be any markup, such as a strong lead and a paragraph under it. In a card the message sits in the body's flow, under the prose it qualifies.

Examples

Severities that explain
This is an informational message.
Need assistance? Check the documentation.
Severities that report
Operation completed successfully.
Proceed with caution — this action has side effects.
Something went wrong. Please try again.
A custom icon
Override the default icon by passing any Phosphor icon component.
Two icon sizes
Smaller leading icon (lg).
Custom pixel size (40).
A lead and detail
Validation failed

The dataset contains 3 invalid entries. Fix them before resubmitting.

In a card body

Dataset upload

Your dataset is ready to be processed. Review the summary below before continuing.

Large datasets may take several minutes to validate.