Alerts
An alert is an element that displays a brief, important message in a way that attracts the user's attention without interrupting the user's task.
All components are now published.
You successfully read this important alert message. Green often indicates something successful or positive.
Variations
Simple alerts
Success! You have installed Tailwind CSS
Warning! Tailwind CSS requires latest version of PostCSS
Tip! Install Tailwind CSS IntelliSense
Danger! Look behind you
Welcome! Wind UI greets you
Alerts with title and supportive text
All components are now published.
You successfully read this important alert message. Green often indicates something successful or positive.
Some components are not published!
You successfully read this important alert message. Yellow often indicates a warning that might need attention.
All components are now live.
You successfully read this important alert message. Blue often indicates a neutral informative change or action.
Uploading components failed!
You successfully read this important alert message. Red often indicates a dangerous or negative situation.
Retrying connection in 5 sec
You successfully read this important alert message. Grey represents neutrality and balance.
Alerts with icons
Success! You have installed Tailwind CSS
Warning! Tailwind CSS requires latest version of PostCSS
Tip! Install Tailwind CSS IntelliSense
Danger! Look behind you
Welcome! Wind UI greets you
Alerts with icons, title and supportive text
All components are now published.
You successfully read this important alert message. Green often indicates something successful or positive.
Some components are not published!
You successfully read this important alert message. Yellow often indicates a warning that might need attention.
All components are now live.
You successfully read this important alert message. Blue often indicates a neutral informative change or action.
Uploading components failed!
You successfully read this important alert message. Red often indicates a dangerous or negative situation.
Uploading failed, retrying in 5 sec
You successfully read this important alert message. Grey represents neutrality and balance.
Dismissible alerts Requires JS
Success! You have installed Tailwind CSS
Warning! Tailwind CSS requires latest version of PostCSS
Tip! Install Tailwind CSS IntelliSense
Danger! Look behind you
Welcome! Wind UI greets you
Dismissible alerts with action button Requires JS
Success! You are now logged in
Warning! Tailwind CSS requires latest version of PostCSS
Tip! Install Tailwind CSS IntelliSense
Danger! Your source is now sending data
Welcome! Wind UI greets you
Dismissible alerts with title, icon, text and actions Requires JS
All components are now published.
You successfully read this important alert message. Green often indicates something successful or positive.
Some components are not published!
You successfully read this important alert message. Yellow often indicates a warning that might need attention.
All components are now live.
You successfully read this important alert message. Blue often indicates a neutral informative change or action.
Uploading components failed!
You successfully read this important alert message. Red often indicates a dangerous or negative situation.
Uploading failed, retrying in 5 sec
You successfully read this important alert message. Grey represents neutrality and balance.
Usage
Use an alert component to display a brief, important message in a way that will attract the user's attention without interrupting the user's task. Alerts can use colors to indicate the message's importance (info, warning, danger etc).
Specs
Alerts have an internal padding of 1rem (16px) horizontally and 0.75rem (12px) vertically. They can include the following elements:
Accessibility notes
To make the alerts accessible a role="alert"
role is required to communicate the importance of the message to the user. When this role is added to the alert element, the browser will send out an accessible alert event to assistive technology products which can then notify the user.