2nthony / vercel-toast

💬 Framework-agnostic vercel design's toast component (≈1KB Gzipped)
https://vercel-toast.vercel.app
MIT License
89 stars 10 forks source link
css framework-agnostic lightweight message popup toast vercel widget zeit

vercel-toast

NPM version NPM download

Framework-agnostic vercel design's toast component

Usage

Bundler

npm i vercel-toast
// in js file
import 'vercel-toast/css'
import { createToast } from 'vercel-toast'

createToast('Hi from vercel toast!')

Browser CDN

<link
  rel="stylesheet"
  href="https://unpkg.com/vercel-toast/dist/vercel-toast.css"
/>

<script src="https://unpkg.com/vercel-toast"></script>

<script>
  vercelToast.createToast("Hi from vercel toast!");
</script>

Documentation

https://vercel-toast.vercel.app

Credits

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Sponsors

sponsors

License

MIT © 2nthony