Menu

Feather-toast-vue alternative for vue-sonner
πŸ–ΌοΈ

Feather-toast-vue alternative for vue-sonner

DEV CommunityΒ·ZinΒ·6 months ago
#uhkYbuIz
#webdev#opensource#vue#typescript#toast
Reading 0:00
15s threshold

I Built feather-toast-vue β€” A Lightweight Toast Notification Plugin for Vue 3

While working on Vue 3 projects, I wanted a toast notification library that was:

lightweight

easy to set up

customizable

TypeScript friendly

simple enough for small and medium-sized apps

So I decided to build my own: ``.

It’s a lightweight toast notification plugin designed specifically for Vue 3 applications with a clean API and minimal setup.

✨ Features

⚑ Lightweight and fast

🎨 Customizable toast variants

πŸ“ Multiple toast positions

πŸ› οΈ Vue 3 + Vite support

πŸ“¦ TypeScript support

✨ Smooth animations

πŸ”§ Easy integration

Installation

`bash

npm install feather-toast-vue

`

Register the Plugin

` ts

import { createApp } from 'vue'

import App from './App.vue'

import FeatherToast from 'feather-toast-vue'

const app = createApp(App)

app.use(FeatherToast)

app.mount('#app')

`

Usage

`ts

$toast.success('Successfully saved!')

$toast.error('Something went wrong!')

$toast.warning('Warning message!')

`

Demo…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.