The Alert component displays colored feedback messages to users. It supports different colors for various contexts like warnings, errors, success messages, and general information.
Preview
Usage
Props
The main alert message content.
The alert color theme. Options: info, danger, success, warning.
Optional title displayed above the message.
Optional Filament icon name to display.
Size of the icon. Options: Small, Medium, Large.
Color Variants
Info
Success
Warning
Danger
Examples
Alert Without Title
Alert Without Icon
Alerts are commonly used to display validation summaries or important notices in forms:
Blade Component Source
The Alert component is located at packages/admin/resources/views/components/alert.blade.php: