Alerts
Alerts Examples
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Well done! You successfully read this important alert message. 😀
Oh snap! Change a few things up and try submitting again.
Well done! You successfully read this important alert message.
Oh snap! Change a few things up and try submitting again.
Well done! You successfully read this important alert message.
A simple primary alert with an example link. Give it a click if you like.
Alerts Outline Examples
You can see this in action with a live demo:
Well done! You successfully read this important alert message.
Oh snap! Change a few things up and try submitting again.
Well done! You successfully read this important alert message.
Oh snap! Change a few things up and try submitting again.
Well done! You successfully read this important alert message.
Oh snap! Change a few things up and try submitting again. 🎉
Dismissing Examples
You can see this in action with a live demo:
Well done! 👍 You successfully read this important alert message.
Oh snap! Change a few things up and try submitting again.
Dismissing Outline Examples
You can see this in action with a live demo:
Well done! You successfully read this important alert message.
Well done! You successfully read this important alert message.
Custom Alerts Examples
You can see this in action with a live demo:
Primary
Oh snap! Change a few things up and try submitting again.Danger
Oh snap! Change a few things up and try submitting again.Additional content
Alerts can also contain additional HTML elements like headings, paragraphs and dividers.
Well done!
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Whenever you need to, be sure to use margin utilities to keep things nice and tidy.