@shipwright-sh/sonner-vue
v0.1.0
Published
Vue port of Sonner
Maintainers
Readme
Vue
Read the original documentation here.
Installation
npm install @shipwright-sh/sonner-vueUsage
<template>
<div>
<button @click="toast('Hello, world!')">Click me</button>
<Toaster />
</div>
</template>
<script setup lang="ts">
import "@shipwright-sh/sonner-vue/style.css";
import { toast, Toaster } from "@shipwright-sh/sonner-vue";
</script>