🤩
Windframe Import Update is finally here.

Alert

Angular Bootstrap Alert

Angular Bootstrap Alert can be used to provide feedback messages to users after specific actions are carried out.

Examples

Contrast Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the contextual props (e.g., color="success"). For inline dismissal, use the dismiss prop.

Importing the Contrast Angular Bootstrap Alert

typescript
import {AlertModule } from 'cdbangular';

Angular Bootstrap Alert

Typescript
typescript
import { Component, OnInit } from `@angular/core`;
@Component({
selector: `app-alert`,
templateUrl: `./alert.component.html`,
styleUrls: [`./alert.component.scss`]
})
export class AlertComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
HTML
html
<CDBAlert color="primary">
A simple alert built with contrast design check it out!
</CDBAlert>
<CDBAlert color="secondary">
A simple alert built with contrast design check it out!
</CDBAlert>
<CDBAlert color="success">
A simple alert built with contrast design check it out!
</CDBAlert>
<CDBAlert color="danger" [dismiss]=true>
A simple alert built with contrast design check it out!
</CDBAlert>
<CDBAlert color="warning">
A simple alert built with contrast design check it out!
</CDBAlert>
<CDBAlert color="dark">
A simple alert built with contrast design check it out!
</CDBAlert>

Contrast Angular Bootstrap Alert Props

This section will build on your information about the props you get to use with the Contrast React Bootstrap Alert component. You will find out what these props do, their default values, and how you would use them in your code.

The table below lists other prop options of the CDBAlert component.

NameTypeDefaultDescriptionExample
classStringAdds custom classes[class]="myClass"
colorStringprimarySets color of the alert. Choose one of these: primary, secondary, success, danger, warning, info, light, dark[color]="primary"
dismissBooleanfalseShows a dismiss button[dismiss]=true

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast