0.0.5 • Published 7 months ago

devstack-notify v0.0.5

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

Devstack Notify - Vue 3 & Tailwind CSS

NPM Vue 3

Headless Vue 3 notification library with Tailwind CSS.

Inspired by NuxtUI Notifications Screenshot of a notification (1) Screenshot of a notification (2) Screenshot of a notification (3)

🌟 Features

  • Vue 3 composition API support
  • Fully written in Typescript
  • Light and beautiful
  • Easy to install and personnalisable
  • Timeout, callback, actions

🤖 Demo

Live Preview - coming soon

⚡️ Installation

yarn add devstack-notify

or

npm i devstack-notify

You can then register Notifications as a Vue plugin:

import { createApp } from 'vue'
import Notifications from 'devstack-notify'
import App from './App.vue'

createApp(App)
  .use(Notifications)
  .mount('#app')

🍞 How to use

Add the "StackNotifications" components to your main layout or in App.vue:

<StackNotifications />

Then, trigger notifications from your .vue files:

Composition API
import { useToast } from "devstack-notify"

toast.add({
   title: 'No type specified', 
   description: 'Small description' 
})
toast.success({
   title: 'Success', 
   description: 'Small description' 
})
toast.error({
   title: 'Error', 
   description: 'Small description' 
})
toast.warning({
   title: 'Warning', 
   description: 'Small description' 
})
toast.info({
   title: 'Info', 
   description: 'Small description' 
})

Props

  • To do

To do

  • Complete documentation
  • Tests

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

11 months ago

0.0.2

1 year ago

0.0.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago