Skip to main content Skip to docs navigation

Messages

Messages provide the user with contextual static information. They have a lower priority than an alert.

Deprecated in v2.3.2
The Messages component is deprecated and will be removed in a future major release. Use the info alert pattern (.alert.alert-info) for new work.

Overview

Messages are a legacy pattern that should no longer be used for new UI.

Use an info alert to show contextual static information.

html
<div class="alert alert-info d-flex align-items-center" role="alert">
  <i class="modus-icons notranslate me-1" aria-hidden="true">info</i>
  <div>This is an informational alert.</div>
</div>

Legacy examples

To use a message, simply use the .message class followed by the appropriate .message-{theme-color} class to apply color. Use an appropriate icon before the text within a message to further convey meaning.

This is a primary message
This is a secondary message
html
<div id="example-messages" class="d-flex flex-column">
<div class="message message-primary">
  <i class="modus-icons notranslate me-1" aria-hidden="true">info</i>This is a primary message
</div>
<div class="message message-secondary">
  <i class="modus-icons notranslate me-1" aria-hidden="true">help</i>This is a secondary message
</div>
</div>
Last updated April 21, 2026.