Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/2nthony/vercel-toast

💬 Framework-agnostic vercel design's toast component (≈1KB Gzipped)
https://github.com/2nthony/vercel-toast

css framework-agnostic lightweight message popup toast vercel widget zeit

Last synced: 11 days ago
JSON representation

💬 Framework-agnostic vercel design's toast component (≈1KB Gzipped)

Awesome Lists containing this project

README

        

# vercel-toast

[![NPM version](https://badgen.net/npm/v/vercel-toast?label=&color=29BC9B)](https://npmjs.com/package/vercel-toast)
[![NPM download](https://badgen.net/npm/dm/vercel-toast?label=&color=29BC9B)](https://npmjs.com/package/vercel-toast)

Framework-agnostic vercel design's toast component

![](media/toast2.gif)

## Usage

### Bundler

```console
npm i vercel-toast
```

```ts
// in js file
import 'vercel-toast/css'
import { createToast } from 'vercel-toast'

createToast('Hi from vercel toast!')
```

### Browser CDN

```html

vercelToast.createToast("Hi from vercel toast!");

```

## Documentation

https://vercel-toast.vercel.app

## Credits

- [vercel/design's toast](https://vercel.com/design/toast)

## 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](https://cdn.jsdelivr.net/gh/2nthony/sponsors-image/sponsors.svg)](https://github.com/sponsors/2nthony)

## License

MIT © [2nthony](https://github.com/sponsors/2nthony)