Alert Component
Description
The Alert
component provides a styled alert message with various severity levels. It can also be dismissible.
Props
Prop | Type | Default | Description |
---|---|---|---|
variant |
"success" , "info" , "warning" , "error" |
"info" |
Defines the style and icon of the alert. |
dismissible |
boolean |
false |
Allows the alert to be dismissed. |
onClose |
() => void |
undefined |
Callback function when the alert is closed. |
Example Usage
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core