Install via npm:
npm i @dmuy/toast
Include in your app
import '@dmuy/toast/dist/mdtoast.css' import mdtoast from '@dmuy/toast'
Use the following if you don't want to host the js and css files:
js
css
https://unpkg.com/@dmuy/toast@{version}/dist/mdtoast.css https://unpkg.com/@dmuy/toast@{version}/dist/mdtoast.js
https://cdn.jsdelivr.net/gh/dmuy/Material-Toast@{version}/dist/mdtoast.css https://cdn.jsdelivr.net/gh/dmuy/Material-Toast@{version}/dist/mdtoast.js
For production, use the minified version by adding .min to the file name (i.e. mdtoast.min.js)
.min
mdtoast.min.js
Note: Replace {version} with the version you want to use.
{version}
Copy mdtoast.css and mdtoast.js (or the minified versions *.min.js and *.min.css) in the dist folder and include in your app:
mdtoast.css
mdtoast.js
*.min.js
*.min.css
dist
<link rel="stylesheet" type="text/css" href="{path-to}/mdtoast.css"> <script type="text/javascript" src="{path-to}/mdtoast.js"></script>
Note: Replace {path-to} with the absolute or relative path to where you copied the css and js files.
{path-to}
There was an error while loading. Please reload this page.