The alert component serves as a flexible user interface element designed to communicate critical messages and
information to users. Its primary purpose is to seize the user's attention and deliver feedback, warnings,
notifications, or various other types of updates.
The alert component natively has 6 colors, which are: primary, secondary, positive,
negative, warning and info. A simple way to use the alert is to just pass the title and the
color you want, as in the example below:
In the realm of the alert component, we offer three distinct variants to cater to the specific requirements of
your project: flat, outline, and solid. It's important to note that the default variant for
WireUI is flat.
In the context of the alert component, you can utilize the title attribute as a slot for enhanced
customization. If you require both a title and a description, you have the flexibility to pass the description
into either the default slot, and even tailor the default slot to your specific needs.
Regarding padding, we provide a range of diverse options to enhance your project,
and you have the freedom to customize these options to meet your specific needs.
The alert component now offers a wide range of rounding customizations. You have access
to all Tailwind options or the flexibility to create your own custom styles.
Success Message!
Error Message!
Alert Message!
Information Message!
Success Message!
Error Message!
Alert Message!
Information Message!
Success Message!
Error Message!
1{{-- CSS: 'rounded-none' - You can use |rounded="none"| too --}}
The icons change based on the selected color. Below, you can see the icons displayed in their
respective colors, but you also have the option to customize them or even remove them entirely.
primary: bell
secondary: information-circle
positive: check-circle
negative: x-circle
warning: exclamation-triangle
info: information-circle
Warning Color!
Warning Color!
Warning Color!
1{{-- This icon is the default for the warning color --}}
2<x-alerttitle="Warning Color!"warning />
3
4{{-- In this alert we changed the icon to one we liked --}}