alert Component
Alert System
Basic Alerts - Flexible Content Structure
Alert with a paragraph element for better semantic HTML.
Warning Title
Description text can follow the title directly - no .content wrapper required.
Using .content wrapper
The .content wrapper is optional but still fully supported for complex layouts.
Alert Sizes - Icons Auto-Scale
Tiny alert - icon auto-sized to w-3.5 h-3.5
Small alert - icon auto-sized to w-4 h-4
Default alert - icon auto-sized to w-5 h-5
Large alert - icon w-5 h-5
Icons scale appropriately with alert size.
Big alert - icon w-6 h-6
Largest alert gets the biggest icon automatically.
Alert Width Variants - Compact for Toasts
Compact Width (Toast Style):
This is a compact alert perfect for toast notifications
Small compact alert
Error toast message
Info notification
Alert Colors - Automatic Icons
Primary - auto uses 'info' icon
Positive - auto uses 'circle-check' icon
Negative - auto uses 'circle-x' icon
Warning - auto uses 'triangle-alert' icon
Info with custom 'bell' icon override
Red
Orange
Yellow
Olive
Green
Teal
Blue
Violet
Purple
Pink
Brown
Grey
Black
Automatic Icon Injection - Simplify Your HTML!
Simple Usage - Just add 'icon' and icon name:
With Semantic Types - Icons chosen automatically:
Override Defaults - Specify custom icon:
Mix with Other Features:
Large Outlined Alert
With custom shield-check icon and structured content.
Filled Variant - All Colors
Primary filled alert with solid background
Positive filled alert with solid background
Negative filled alert with solid background
Warning filled alert with solid background
Info filled alert with solid background
Red filled
Orange filled
Yellow filled
Olive filled
Green filled
Teal filled
Blue filled
Violet filled
Purple filled
Pink filled
Brown filled
Grey filled
Black filled
Outline Variant - All Colors
Primary outline alert
Positive outline alert
Negative outline alert
Warning outline alert
Info outline alert
Red outline
Orange outline
Yellow outline
Olive outline
Green outline
Teal outline
Blue outline
Violet outline
Purple outline
Pink outline
Brown outline
Grey outline
Black outline
Alerts with Titles - All Colors
Alerts with Actions
Alert Groups (Stacked)
First notification in the stack
Second notification in the stack
Third notification in the stack
Auto-Dismiss Alerts
This alert is dismissible and shows progress. Use the button below to add auto-dismiss timer.