Alert

Displays a callout for user attention.

PreviousNext
Success! Your changes have been saved
This is an alert with icon, title and description.
This Alert has a title and an icon. No description.
Unable to process your payment.

Please verify your billing information and try again.

  • Check your card details
  • Ensure sufficient funds
  • Verify billing address

Installation

1

Run the CLI

Use the CLI to add the component to your project.

npx @ngzard/ui@latest add alert

Examples

basic

Success! Your changes have been saved
This is an alert with icon, title and description.
This Alert has a title and an icon. No description.
Unable to process your payment.

Please verify your billing information and try again.

  • Check your card details
  • Ensure sufficient funds
  • Verify billing address

API Reference

z-alert Component

Property Description Type Default
[zTitle] Alert title string | TemplateRef<void> -
[zDescription] Alert description string | TemplateRef<void> -
[zIcon] Alert icon string | TemplateRef<void> -
[zType] Alert variant default | destructive default