Alert

Alert component for feedback.

When To Use

  • When you need to show alert messages to users.
  • When you need a persistent static container which is closable by user actions.

Basic

The simplest usage for short messages.

Closable

To show close button.

Description

Additional description for alert message.

Custom icon

Make information more clear and more friendly and meet customized needs.

API Reference

Property
Description
Type
Default

variant

The variant of the alert, dictating its colors and default icon. 'info' | 'success' | 'warning' | 'error' 'info'

title

Optional title text for the alert. string -

icon

Custom icon to override the variant default. Must be a valid IconName. IconName -

closable

If true, shows a close button that dismisses the alert when clicked. boolean false