little-toast
v0.1.0
Published
A pure Javascript toast component.
Downloads
2
Readme
little-toast
Screenshot
Development
npm install
npm run build
open file example.html
in browser.
Usage
ESM
import { showToast } from 'little-toast';
import 'little-toast/dist/styles.css';
showToast('hello');
UMD
- 引入
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/little-toast/dist/styles.css" />
<script src="https://cdn.jsdelivr.net/npm/little-toast/dist/toast.umd.js"></script>
- 使用
LittleToast.showToast('hello');