Control the alert style by supplying the style="" attribute.
This alert details some information.
This alert details a success.
This alert details some information.
This alert details a warning.
This alert details an error.
<divclass="space-y-2"><x-alertstyle="default"> This alert details some information.</x-alert><x-alertstyle="success"> This alert details a success.</x-alert><x-alertstyle="info"> This alert details some information.</x-alert><x-alertstyle="warning"> This alert details a warning.</x-alert><x-alertstyle="danger"> This alert details an error.</x-alert></div>
<div class="space-y-2">
<x-alert style="default">
This alert details some information.
</x-alert>
<x-alert style="success">
This alert details a success.
</x-alert>
<x-alert style="info">
This alert details some information.
</x-alert>
<x-alert style="warning">
This alert details a warning.
</x-alert>
<x-alert style="danger">
This alert details an error.
</x-alert>
</div>
You can customize the default icons globally by calling either the setDefaultIcons() or setDefaultIconForStyle() method from a service provider's boot() method, or middleware.
The setDefaultIcons() method takes an array of icon definitions.