0.0.43 • Published 3 years ago

toastwind v0.0.43

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Toastwind!

Toastwind is tiny library to show toast on your website.

1. Installation

npm i toastwind

2. Import Project

import Toast from "toastwind"
import "toastwind/dist/style.css"
Toast.show("Success, Data saved!")

4. Option you can customize toast using option parameter

Toast.show("Error, Data not found",
{
    timeout : 3000,
    status : 'error', // success | error
    position : 'top right', // top | bottom | left | right
    darkMode : false // true | false
})

6. CDN Usage

   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastwind/dist/style.css">
    <script src="https://cdn.jsdelivr.net/npm/toastwind"></script>
    
    <script>
        Toast.show("Success, Data saved!")
    </script>
    

7. Methods

method namedescription
show(text : string, option?)show toast
setDefault(option?)set default of option

Thank You

This library built using vite, tailwind css, flowbite component and svelte.

0.0.43

3 years ago

0.0.42

3 years ago

0.0.41

3 years ago

0.0.40

3 years ago

0.0.38

3 years ago

0.0.37

3 years ago

0.0.36

3 years ago

0.0.35

3 years ago

0.0.34

3 years ago

0.0.33

3 years ago

0.0.32

3 years ago

0.0.31

3 years ago

0.0.30

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago