هشدارها

پیامهای بازخورد زمینه ای را برای اقدامات معمولی کاربر ارائه دهید.

مشاهده در سایت بوت استرپ

پیش فرض

<!-- Primary alert -->
<div class="alert alert-primary" role="alert">
  A simple primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Accent alert -->
<div class="alert alert-accent" role="alert">
  A simple accent alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Secondary alert -->
<div class="alert alert-secondary" role="alert">
  A simple secondary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Success alert -->
<div class="alert alert-success" role="alert">
  A simple success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Danger alert -->
<div class="alert alert-danger" role="alert">
  A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Warning alert -->
<div class="alert alert-warning" role="alert">
  A simple warning alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Info alert -->
<div class="alert alert-info" role="alert">
  A simple info alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Light alert -->
<div class="alert alert-light" role="alert">
  A simple light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>

<!-- Dark alert -->
<div class="alert alert-dark" role="alert">
  A simple dark alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
// Primary alert
.alert.alert-primary(role="alert")
  | A simple primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Accent alert
.alert.alert-accent(role="alert")
  | A simple accent alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Secondary alert
.alert.alert-secondary(role="alert")
  | A simple secondary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Success alert
.alert.alert-success(role="alert")
  | A simple success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Danger alert
.alert.alert-danger(role="alert")
  | A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Warning alert
.alert.alert-warning(role="alert")
  | A simple warning alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Info alert
.alert.alert-info(role="alert")
  | A simple info alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Light alert
.alert.alert-light(role="alert")
  | A simple light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

// Dark alert
.alert.alert-dark(role="alert")
  | A simple dark alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.

هشدار با آیکن

<!-- Primary alert -->
<div class="alert alert-primary d-flex" role="alert">
  <i class="fi-bell me-2 me-sm-3 lead"></i>
  <div>A simple primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Accent alert -->
<div class="alert alert-accent d-flex" role="alert">
  <i class="fi-star me-2 me-sm-3 lead"></i>
  <div>A simple accent alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Secondary alert -->
<div class="alert alert-secondary d-flex" role="alert">
  <i class="fi-clock me-2 me-sm-3 lead"></i>
  <div>A simple secondary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Success alert -->
<div class="alert alert-success d-flex" role="alert">
  <i class="fi-check-circle me-2 me-sm-3 lead"></i>
  <div>A simple success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Danger alert -->
<div class="alert alert-danger d-flex" role="alert">
  <i class="fi-x-circle me-2 me-sm-3 lead"></i>
  <div>A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Warning alert -->
<div class="alert alert-warning d-flex" role="alert">
  <i class="fi-alert-triangle me-2 me-sm-3 lead"></i>
  <div>A simple warning alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Info alert -->
<div class="alert alert-info d-flex" role="alert">
  <i class="fi-alert-circle me-2 me-sm-3 lead"></i>
  <div>A simple info alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Light alert -->
<div class="alert alert-light d-flex" role="alert">
  <i class="fi-unlock me-2 me-sm-3 lead"></i>
  <div>A simple light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>

<!-- Dark alert -->
<div class="alert alert-dark d-flex" role="alert">
  <i class="fi-map-pin me-2 me-sm-3 lead"></i>
  <div>A simple dark alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.</div>
</div>
// Primary alert
.alert.alert-primary.d-flex(role="alert")
  i.fi-bell.lead.me-2.me-sm-3
  div A simple primary alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Accent alert
.alert.alert-accent.d-flex(role="alert")
  i.fi-star.lead.me-2.me-sm-3
  div A simple accent alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Secondary alert
.alert.alert-secondary.d-flex(role="alert")
  i.fi-clock.lead.me-2.me-sm-3
  div A simple secondary alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Success alert
.alert.alert-success.d-flex(role="alert")
  i.fi-check-circle.lead.me-2.me-sm-3
  div A simple success alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Danger alert
.alert.alert-danger.d-flex(role="alert")
  i.fi-x-circle.lead.me-2.me-sm-3
  div A simple danger alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Warning alert
.alert.alert-warning.d-flex(role="alert")
  i.fi-alert-triangle.lead.me-2.me-sm-3
  div A simple warning alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Info alert
.alert.alert-info.d-flex(role="alert")
  i.fi-alert-circle.lead.me-2.me-sm-3
  div A simple info alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Light alert
.alert.alert-light.d-flex(role="alert")
  i.fi-unlock.lead.me-2.me-sm-3
  div A simple light alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

// Dark alert
.alert.alert-dark.d-flex(role="alert")
  i.fi-map-pin.lead.me-2.me-sm-3
  div A simple dark alert with
    <a href="#" class="alert-link">an example link</a>
    | Give it a click if you like.

کادر هشدار با قابلیت Close

<!-- Primary alert -->
<div class="alert alert-primary alert-dismissible fade show" role="alert">
  <span class="fw-bold">Primary alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<!-- Secondary alert -->
<div class="alert alert-secondary alert-dismissible fade show" role="alert">
  <span class="fw-bold">Secondary alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<!-- Success alert -->
<div class="alert alert-success alert-dismissible fade show" role="alert">
  <span class="fw-bold">Success alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<!-- Danger alert -->
<div class="alert alert-danger alert-dismissible fade show" role="alert">
  <span class="fw-bold">Danger alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<!-- Warning alert -->
<div class="alert alert-warning alert-dismissible fade show" role="alert">
  <span class="fw-bold">Warning alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<!-- Info alert -->
<div class="alert alert-info alert-dismissible fade show" role="alert">
  <span class="fw-bold">Info alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<!-- Light alert -->
<div class="alert alert-light alert-dismissible fade show" role="alert">
  <span class="fw-bold">Light alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

<!-- Dark alert -->
<div class="alert alert-dark alert-dismissible fade show" role="alert">
  <span class="fw-bold">Dark alert:</span> Dismiss me by clicking the close button on the right.
  <button type="button" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
// Primary alert
.alert.alert-primary.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Primary alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close

// Secondary alert
.alert.alert-secondary.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Secondary alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close

// Success alert
.alert.alert-success.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Success alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close

// Danger alert
.alert.alert-danger.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Danger alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close

// Warning alert
.alert.alert-warning.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Warning alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close

// Info alert
.alert.alert-info.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Info alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close

// Light alert
.alert.alert-light.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Light alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close

// Dark alert
.alert.alert-dark.alert-dismissible.fade.show(role="alert")
  | <span class="fw-bold">Dark alert:</span> Dismiss me by clicking the close button on the right.
  button(type="button", data-bs-dismiss="alert", aria-label="Close").btn-close.btn-close-white

کادر هشدار با Divider

<!-- Accent alert -->
<div class="alert alert-accent" role="alert">
  <h4 class="pt-2 alert-heading">Well done!</h4>
  <p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
  <hr>
  <p class="pt-3 mb-2">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>
// Accent alert
.alert.alert-accent(role="alert")
  h4.pt-2.alert-heading Well done!
  p Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
  hr
  p.pt-3.mb-2 Whenever you need to, be sure to use margin utilities to keep things nice and tidy.
بالا