1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-31 07:24:40 +04:00
Files
tabler/pages/_docs/toasts.md
T
2020-01-03 19:53:52 +01:00

29 lines
886 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Toasts
menu: docs.toasts
description: The toast component is like an alert box that is only shown for a couple of seconds when something happens (i.e. when the user clicks on a button, submits a form, etc.).
bootstrap-link: components/toasts/
---
### Default markup
{% example %}
{% include ui/toast.html %}
{% endexample %}
### Translucent
Toasts are slightly translucent, too, so they blend over whatever they might appear over. For browsers that support the `backdrop-filter` CSS property, well also attempt to blur the elements under a toast.
{% example html class=bg-gray %}
{% include ui/toast.html %}
{% endexample %}
### Stacking toasts
If you want to stack toasts just put them in the same container.
{% example %}
{% include ui/toast.html person-id=3 %}
{% include ui/toast.html date="7 mins ago" text="This is another toast message." %}
{% endexample %}