Skip to main content

Alert

Overview

The Style Kit includes a customised version of the Bootstrap alert plugin to be compatible with Style Kit specific classes. It’s functionality and data API remain exactly the same.

View Alert Plugin

Dependencies

See distribution for how to include these dependencies.

Uses

Use with the Style Kit alert component to create dismissible alerts.

Examples

<div id="alert-id" class="bsk-alert bsk-alert-solid bsk-alert-success bsk-alert-dismissible" role="alert">
  <button type="button" class="bsk-close" data-bs-dismiss="alert" data-bs-target="#alert-id" aria-label="Close">&times;</button>
  A dismissible alert
</div>