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 zard-cli@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 TemplateRef<void> | string -
[zType] Alert variant default | destructive default

zIcon: if not specified, default icon will be lucideCircleAlert

github iconwhatsapp icondiscord iconX icon

Made with in Brazil. Open source and available on GitHub .