0.2.0 • Published 1 year ago

nuxt-newsletter v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

nuxt-newsletter

nuxt-newsletter

npm version npm downloads Github Actions CI License

Newsletter module for Nuxt 3

Features

  • Nuxt 3 ready
  • Easy integration with Mailchimp, Revue, Buttondown
  • Unstyled NewletterForm.vue component
  • Handy useNewsletterSubscribe composable
  • TypeScript support

📖  Read the documentation

Setup

yarn add nuxt-newsletter # yarn
npm i nuxt-newsletter # npm

Basic usage

Firstly, you need to add nuxt-newsletter to your Nuxt config.

// nuxt.config.js

{
    modules: [
        "nuxt-newsletter",
    ],
    newsletter: {
      // mailchimp | revue | buttondown
      <YOUR_NEWSLETTER_PROVIDER>: {
        // options like apiKey
      }
    }
}

Then you can start using nuxt-newsletter in your app!

<template>
  <div>
    <newsletter-form />
  </div>
</template>

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using yarn dev or npm run dev

License

MIT License