Skip to content

Alert

Displays a callout for user attention.

Installation

npm i @huin-core/react-alert

API Reference

Alert

PropTypeDescription
asChildbooleanWhen set to true, renders the component as its child element, inheriting the child's styles and behavior.
variant"default" | "destructive"Defines a different style or appearance of the component, allowing for customization of its look and feel based on specific use cases.

AlertTitle

PropTypeDescription
asChildbooleanWhen set to true, renders the component as its child element, inheriting the child's styles and behavior.

AlertDescription

PropTypeDescription
asChildbooleanWhen set to true, renders the component as its child element, inheriting the child's styles and behavior.