Alert

Component to display alerts.

Installation

Add the component to your project using the following command:

Usage

Import

Import the component and its related parts.

Alert Parts

Structure

The expected structure and composition of the component.

Anatomy

Minimal Usage

Minimal Usage

Props

Each component part, its responsibility, and the props it exposes.

<Alert>

This component extends the JSX div element.

Name
Default
Options
`variant`
`default`
`default``info``success``warning``danger``tertiary`

Examples

Variants

You may use different variants of the alert by using the variant prop.

Description

Add a description to the alert by using the AlertDescription component.

Action

Add an action to the alert by using the AlertAction and Button components.