Alerts are used to communicate a state that affects a system, feature or page. They are used to provide feedback about an action that has taken place.
The Primary Alert description from Figma goes here
The Secondary Alert description from Figma goes here
The Danger Alert description from Figma goes here
The Dark Alert description from Figma goes here
1<div class="alert alert-horizontal alert-dismissible w-100" role="alert">
2 <h4 class="alert-heading">Lorem Ipsum Dolor</h4>
3 <p>Notification text</p>
4 <p>
5 <a href="#">Learn more</a>
6 </p>
7 <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
8</div>
The Info Alert description from Figma goes here
The Light Alert description from Figma goes here
The Success Alert description from Figma goes here
1<div class="alert alert-vertical alert-dismissible" role="alert">
2 <h4 class="alert-heading">Lorem Ipsum Dolor</h4>
3 <p>Notification text</p>
4 <p>
5 <a href="#">Learn more</a>
6 </p>
7 <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
8</div>
The Warning Alert description from Figma goes here
Make it clear what this alert does for the user.
What to do with alerts
What not to do with alerts
Complete list of all CSS classes for the component.
Name | Class |
---|---|
Primary Alert | alert alert-primary |
Secondary Alert | alert alert-secondary |
Danger Alert | alert alert-danger |
Dark Alert | alert alert-dark |
Horizontal Alert | alert alert-horizontal |
Info Alert | alert alert-info |
Light Alert | alert alert-light |
Success Alert | alert alert-success |
Vertical Alert | alert alert-vertical |
Warning Alert | alert alert-warning |