Skip to content

Alert

A component to display a message to the user. Alerts are often used to provide feedback to the user about an action they have taken or to inform them of a system event.

Import

Terminal window
import { Alert } from "@aeonkit/react";

Usage

Info

The default alert style, which is used to provide general information to the user.

Success

The success alert style, which is used to inform the user that an action has been completed successfully.

Warning

The warning alert style, which is used to inform the user of a potential issue.

Danger

The danger alert style, which is used to inform the user of a critical issue.

Props

variant?

"info" "success" "warning" "error"

The alert variant.

Default: info

closable?

boolean

Whether the alert can be closed.

Default: false

API Interface: AlertProps