Skip to content

Component library

Alert Box component

Last updated 2 November 2026

Creates an alert box for notifications.

Live demo

<ins-alert-box type="primary" close-icon="icon-close-1" no-close-button>
  <div>
    <strong>Example</strong><br />
    <span>This is an alert box example.</span>
  </div>
</ins-alert-box>

Attributes

FIELD ATTRIBUTE TYPE DEFAULT OPTIONS DESCRIPTION
type string primary primary, success, warning, error Defines what the color type of alert box will use.
close-icon string icon-close - Defines the font icon used on the alert box close button.
no-close-button boolean false true, false Defines if the alert box will not have a close button.

Examples

Types Example

<ins-alert-box type="primary" close-icon="icon-close-1">
  <div>
    <strong>Primary</strong><br />
    <span>This is an alert box primary type.</span>
  </div>
</ins-alert-box>
<br />

<ins-alert-box type="success" close-icon="icon-close-1">
  <div>
    <strong>Success</strong><br />
    <span>This is an alert box success type.</span>
  </div>
</ins-alert-box>
<br />

<ins-alert-box type="warning" close-icon="icon-close-1">
  <div>
    <strong>Warning</strong><br />
    <span>This is an alert box warning type.</span>
  </div>
</ins-alert-box>
<br />

<ins-alert-box type="error" close-icon="icon-close-1">
  <div>
    <strong>Error</strong><br />
    <span>This is an alert box error type.</span>
  </div>
</ins-alert-box>