Socket
Socket
Sign inDemoInstall

nuxt3-notifications

Package Overview
Dependencies
180
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuxt3-notifications

<a href="https://github.com/windx-foobar/nuxt3-notifications/blob/master/LICENSE" target="_b


Version published
Weekly downloads
1.1K
decreased by-22.23%
Maintainers
1
Install size
85.7 kB
Created
Weekly downloads
 

Changelog

Source

v1.2.0

compare changes

🚀 Enhancements

  • Created docs (8e0a99b)
  • Bump @kyvg/vue3-notification (b8305c0)

🩹 Fixes

🏡 Chore

  • Remove custom buildDir (634816a)
  • Added homepage link to docs site (9257827)

❤️ Contributors

Readme

Source

Nuxt3 Notifications Module

Version License Nuxt

This is module @kyvg/vue3-notification for Nuxt3

📦 Get Started

  1. Install nuxt3-notifications as project dependency:
npm i nuxt3-notifications # npm
yarn add nuxt3-notifications # yarn
  1. Add it to the modules section of your nuxt.config:
export default defineNuxtConfig({
  modules: ['nuxt3-notifications'],
});

🚀 Example

<!-- app.vue -->
<template>
  <NuxtNotifications position="bottom left" :speed="500" />
</template>
<!-- page.vue/component.vue -->

<script setup>
  const { notify } = useNotification();

  function onClick() {
    notify({
      title: "Title",
      text: "Hello notify!",
    });
  }
</script>

<template>
  <button @click="onClick">Show notify</button>
</template>

🔨 Config

export default defineNuxtConfig({
  modules: ['nuxt3-notifications'],
  nuxtNotifications: {
    componentName: 'Foo' // 'foo-bar' or 'FooBar' for components of two or more words
  },
});

💻 Development

  • Fork and clone windx-foobar/nuxt3-notifications
  • Enable corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • Install dependencies using yarn install
  • Run yarn dev:prepare to generate type stubs.
  • Use yarn dev to start playground in development mode.

Keywords

FAQs

Last updated on 06 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc