Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.


Examples

<div>
    <base-alert type="default">
        <strong>Default!</strong> This is a default alert—check it out!
    </base-alert>

    <base-alert type="primary">
        <strong>Primary!</strong> This is a primary alert—check it out!
    </base-alert>

    <base-alert type="secondary">
        <strong>Secondary!</strong> This is a secondary alert—check it out!
    </base-alert>

    <base-alert type="info">
        <strong>Info!</strong> This is a info alert—check it out!
    </base-alert>

    <base-alert type="success">
        <strong>Success!</strong> This is a success alert—check it out!
    </base-alert>

    <base-alert type="danger">
        <strong>Danger!</strong> This is a danger alert—check it out!
    </base-alert>

    <base-alert type="warning">
        <strong>Warning!</strong> This is a warning alert—check it out!
    </base-alert>
</div>
Show Code

With icon

<base-alert type="warning">
    <span class="alert-inner--icon"><i class="ni ni-like-2"></i></span>
    <span class="alert-inner--text"><strong>Warning!</strong> This is a warning alert—check it out that has an icon too!</span>
</base-alert>
Show Code

Dismissing

<div>
  <base-alert dismissible type="default" icon="ni ni-like-2">
    <strong>Default!</strong> This is a default alert—check it out!
  </base-alert>

  <base-alert dismissible type="primary" icon="ni ni-like-2">
    <strong>Default!</strong> This is a primary alert—check it out!
  </base-alert>

  <base-alert dismissible type="secondary" icon="ni ni-like-2">
    <strong>Default!</strong> This is a secondary alert—check it out!
  </base-alert>

  <base-alert dismissible type="info" icon="ni ni-like-2">
    <strong>Default!</strong> This is a info alert—check it out!
  </base-alert>

  <base-alert dismissible type="danger" icon="ni ni-like-2">
    <strong>Default!</strong> This is a danger alert—check it out!
  </base-alert>

  <base-alert dismissible type="warning" icon="ni ni-like-2">
    <strong>Default!</strong> This is a warning alert—check it out!
  </base-alert>
</div>
Show Code

Props