From d2477abecdf03f242bcb166c463b7ec5ce5fc7bd Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 18 Jan 2021 20:59:59 +0200 Subject: Backport #32760 (#32827) Add a live toast example to the docs --- site/content/docs/4.5/components/toasts.md | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'site/content/docs') diff --git a/site/content/docs/4.5/components/toasts.md b/site/content/docs/4.5/components/toasts.md index fd8ea06e8..73e8bc41d 100644 --- a/site/content/docs/4.5/components/toasts.md +++ b/site/content/docs/4.5/components/toasts.md @@ -45,6 +45,50 @@ Toasts are as flexible as you need and have very little required markup. At a mi {{< /example >}} +### Live + +Click the button the below to show as toast (positioning with our utilities in the lower right corner) that has been hidden by default with `.hide`. + +
+ +
+ +
+ +
+ +```html + + +
+ +
+``` + ### 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. -- cgit v1.2.3