Alert

Use the alert shortcode to display a contextual feedback message.

Overview

Use the alert shortcode to display a contextual feedback message. The inner content is used as alert text.

Arguments

The shortcode supports the following arguments:

ArgumentRequiredDescription
colorNoOptional theme color of the alert, either “primary” (default), “secondary”, “success”, “danger”, “warning”, “info”, “light”, “dark”, “white” or “black”.
dismissibleNoOptional flag to indicate the alert is dismissible, defaults to false.

Example

As an example, the following shortcode displays a simple alert.

markdown
{{< alert color="danger" >}}
    A simple danger alert—check it out!
{{< /alert >}}
Last updated: February 12, 2023 • Upgrade to docs v0.9 (2caaad8)