/toastm

Add Awesome Simple Toast Message / Notification on your website 📜

Primary LanguageJavaScript

What is Toastm ? 🤔

It's Just a Package for Popup Toast / Notification Message 📜

Installation ⚙️

  npm install toastm

How to Use toastm 🤔

index.html

<head>
  <link rel="stylesheet" href="./style.css" />
</head>
<body>
  <script type="module" src="yourfilename.js"></script>
</body>

yourfilename.js

import { addToastm } from "./node_modules/toastm/toastm.js";

addToastm({
  color: "primary",
  position: "center",
  text: "Toastm notification box 😄",
});

style.css

@import "./node_modules/toastm/style.css";

Options 📜

    * color - primary | secondary | success | danger | warning | dark | special
    * text - anything
    * positon - left | center | right