# Alerts

### Default Alerts

```markup
<div class="alert alert-primary" role="alert">
  A simple primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
  A simple secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
  A simple success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
  A simple danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
  A simple warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
  A simple info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
  A simple light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
  A simple dark alert—check it out!
</div>
```

### Dismissable Alerts

```markup
<div class="alert alert-warning alert-dismissible fade show" role="alert">
  <strong>Holy guacamole!</strong> You should check in on some of those fields below.
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    <span aria-hidden="true">&times;</span>
  </button>
</div>
```

### Bordered Alerts

<div align="left"><img src="/files/-LUFe8ljz6x7kuNf6-JO" alt=""></div>

```markup
<div class="alert alert-border-info  alert-dismissible fade show" role="alert">
    <div class="d-flex">
        <div class="icon">
            <i class="icon mdi mdi-alert-circle-outline"></i>
        </div>
        <div class="content">
            <strong>Holy guacamole!</strong> You should check in on some of those fields below.
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
    </div>

</div>
```

### Pinned Alerts

These alerts are pinned to body when they are trigger. they can be used for delivering contextual notifications on the panel

```javascript
 $('.admin-content').alertNotify({
           message: "Alert Message it can contain  html <b>Danger</b>",
           type:  "danger", //primary,danger,success,info,warning
           dismiss:  true // can be dismissed or not
       });
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.atomui.com/ui-elements/alerts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
