{{-- Soft alerts --}}

Soft alerts

Heads up

This is a soft primary alert. Use it for neutral messages.

Success

Your changes were saved successfully.

Warning

Something needs your attention before continuing.

Error

We could not complete your request. Please try again.

Info

This is informational content. It is not an error.

{{-- Solid alerts --}}

Solid alerts

Solid primary

Use solid alerts sparingly for high importance. Learn more

Solid success

Payment was confirmed and the order is now processing.

Solid warning

Your subscription will expire soon. Please update billing info.

Solid danger

Action required: your webhook URL is failing.

Solid info

We are currently performing scheduled maintenance.

{{-- Outline alerts --}}

Outline alerts

Outline primary

Good for subtle notes without background color.

Outline danger

Use this when you want to highlight an error without a filled background.

{{-- Dismissible example (Alpine optional) --}}

Dismissible alert (optional Alpine)

Dismiss me

This alert can be closed using Alpine. If you don’t use Alpine, just remove x-data and the button.

{{-- Laravel validation example --}}

Laravel validation example

Please fix the following errors:

  • The email field is required.
  • The password must be at least 8 characters.
  • The phone number is invalid.
{{-- Real Laravel usage: @if ($errors->any())

{{ __('Please fix the following errors:') }}

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif --}}