Giter Club home page Giter Club logo

vercel-toast's Introduction

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

vercel-toast's People

Contributors

2nthony avatar dependabot[bot] avatar edwardribas avatar ntnyq avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vercel-toast's Issues

Allow to set the position

I'm aware this is based on vercel's design approach, but as with other libs there is a position property we can pass so we change the anchor point, something along the lines of:

top-left top-center top-right
left center right
bottom-left bottom-center bottom-right

I've read the documentation it doesn't seem to point to this option being available.

--
Thank you

feat: add stack effect

Add stack effect

Expect

Expect hovering effect like zeit/design's toast

zeit-toast

but current version will do nothing when hovering

my-toast

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/setup-node v3
npm
package.json
  • @2nthony/eslint-config ^1.0.1
  • @saika/github-corner 0.1.3
  • @vitejs/plugin-vue2 ^2.2.0
  • eslint ^8.36.0
  • husky 8.0.3
  • lint-staged 13.3.0
  • postcss 8.4.38
  • postcss-preset-env 8.5.1
  • saika 2.13.10
  • saika-code-block-buttons 1.0.1
  • tsup 6.7.0
  • typedoc 0.23.27
  • typescript 5.0.4
  • vite 4.5.3
  • vue 2.7.16
  • vue-template-compiler 2.7.16
  • vuedown 3.2.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.