ttoast

0.1.5 • Public • Published

ttoast

Toast Component

npm npm npm

Demo

https://lishengzxc.github.io/toast/

Install

npm install ttoast --save

Usage

html

<body>
  <button id="toast">toast</button>
  <script src="build/toast.js"></script> 
  <script>
    toast.addEventListener('click', () => {
      Toast('你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界')
    }, false)
  </script> 
</body>

API

Basic

Toast('hello world~')

Duration

Toast({
  message: 'hello world~',
  duration: 5000
});

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i ttoast

Weekly Downloads

2

Version

0.1.5

License

MIT

Last publish

Collaborators

  • lishengzxc