jcb-snackbar
v1.0.4
Published
simplest snackbar
Downloads
1
Readme
Test in dev
npx parcel src/index.html
Build with Parcel
npx parcel build src/index.mjs
Result is in dist/snackbar.mjs
Publish in NPM
npm publish
Use in Vue3 project
<jcb-snackbar ref="snack"></jcb-snackbar>
...
import 'jcb-snackbar'
...
const snack = ref(null)
...
// snack with stay on top for 2s; promise resolves when snack has completely disapeared (total time: 0.5s + 2s + 0.5s)
await snack.show("Action complete!", "success", 2000)