0.0.5 โ€ข Published 4 months ago

@spaneco/vue-hot-toast v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Features

  • ๐Ÿ”ฅ Hot by default
  • ๐Ÿ”ฉ Easily Customizable
  • โณ Promise API - Automatic loader from a promise
  • ๐Ÿ•Š Lightweight - less than 3.6kb including styles
  • โœ… Accessible
  • ๐Ÿคฏ Headless Hooks - Create your own with useToaster()

Installation

With pnpm

pnpm add @spaneco/vue-hot-toast

With NPM

npm install @spaneco/vue-hot-toast

Getting Started

Add the Toaster to your app first. It will take care of rendering all notifications emitted. Now you can trigger toast() from anywhere!

<script setup lang="ts">
    import { toast, Toaster } from '@spaneco/vue-hot-toast'
    import '@spaneco/vue-hot-toast/dist/vue-hot-toast.css'

    toast('Here is your toast.');
</script>

<template>
  <Toaster position="top-left"/>
</template>

Documentation

Find the full API reference on official documentation.

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago