Codex Documentation Manager
Component
Alerts

Usage

The alert component can be used to display various alert panels.

Properties

title
required
String

A heading to be placed inside the alert panel.

style
optional
Enum

A visual theme for the alert. Valid options are:

  • danger

  • primary

  • info

  • warning

Examples

A basic alert
<Alert style="danger">
An example alert message
</Alert>

An Example alert message

An alert with a heading
<Alert style="warn" title="Be careful doing this">
A reason why doing *that* is bad.
</Alert>

Be careful doing this

A reason why doing that is bad.

Complex markdown inside alerts
<Alert style="info" title="More information">
Here are some things to be aware of
- Item number 1 
- **Item** number two
</Alert>

More information

Here are some things to be aware of

  • Item number 1

  • Item number two

Generated by Codex