1. Components
  2. alert

Alert

Inline notification for conveying success, error, or warning messages.

Demo

Installation

Shell
flexi-cli add alert

Examples

With Title

Variants

References

Props

The alert component accepts the following props. All props are optional.

Prop Type Default Description
variant string 'solid'
The visual style variant of the alert. Can be 'solid', 'soft', 'outline', 'subtle', or 'link'
intent string 'gray'
The color intent of the alert. Common intents include 'primary', 'success', 'warning', 'danger', and 'info'
size string 'default'
Size of the alert. Can be 'xs', 'sm', 'default', or 'lg'
radius string 'md'
Border radius of the alert. Common values include 'none', 'sm', 'md', 'lg', 'full'
class string ''
Additional CSS classes to apply to the alert