Alert

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Examples

Here are examples of the Alert component:

A simple alert—check it out!
Useful Info

Here are some helpful tips for customizing and using the Alert component:

  • Customize the appearance with CSS variables:
    • --padding-x, --padding-y - Adjust horizontal and vertical padding.
    • --radius - Set the border radius for rounded corners.
    • --item-bg - Define the background color of Alert items.
    • --animation-duration - Set the speed of opening/closing transitions.
  • Apply the .modern class to make it modern.
  • Use the open attribute to make an item expanded by default.
See example