import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { AlertComponent } from "../../../../../ui-essentials/src/public-api";
@Component({
selector: 'ui-alert-demo',
standalone: true,
imports: [CommonModule, FontAwesomeModule, AlertComponent],
template: `
Alert Demo
Sizes
@for (size of sizes; track size) {
This is a {{ size }} size alert component demonstration.
}
Variants
This is a primary alert for general information or neutral messages.
Your action was completed successfully! Everything worked as expected.
Please review this information carefully before proceeding.
Something went wrong. Please check your input and try again.
Here's some helpful information you might want to know.
Without Icons
This alert doesn't show an icon for a cleaner look.
This warning alert has no title and no icon.