mirror of
https://github.com/tabler/tabler.git
synced 2026-08-01 07:54:38 +04:00
toasts docs and example class option added
This commit is contained in:
+17
-2
@@ -5,10 +5,25 @@ description: The toast component is like an alert box that is only shown for a c
|
||||
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, we’ll 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 %}
|
||||
Reference in New Issue
Block a user