Skip to main content
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

string
required
The main alert message content.
string
default:"warning"
The alert color theme. Options: info, danger, success, warning.
string
default:"null"
Optional title displayed above the message.
string
default:"null"
Optional Filament icon name to display.
IconSize
default:"Medium"
Size of the icon. Options: Small, Medium, Large.

Color Variants

Info

Success

Warning

Danger

Examples

Alert Without Title

Alert Without Icon

Using in Forms

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: