ttoast
v0.1.5
Published
Mobile Toast Component
Downloads
3
Readme
ttoast
Toast Component
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