Spiking out an option for #31330 (closed) to add some live examples of alerts (toasts are already there). Ideally we could include more JS folks could copy-pasta to use in their own environments, so hoping to get some help cleaning up the additions in application.js
because right now it's not the best and doesn't scale beyond this one demo.
/cc @patrickhlauke as issue author /cc @planetoftheweb since he mentioned better snippets in our docs
Preview:
- https://deploy-preview-33866--twbs-bootstrap.netlify.app/docs/5.0/components/alerts/#live-example
- https://deploy-preview-33866--twbs-bootstrap.netlify.app/docs/5.0/components/toasts/#live-example
Fixes #31330 (closed)