@nuxt-modules/newsletter
v0.1.7
Published
Newsletter module for Nuxt
Downloads
18
Maintainers
Readme
@nuxtjs/newsletter
Newsletter module for Nuxt
Features
- Nuxt 3 ready
- Easy integration with Mailchimp, Revue, Buttondown
- Useful (optional) NewletterForm.vue component
- Handy useNewsletterSubscribe composable
- [Coming soon] More newsletter providers
- TypeScript support
Setup
yarn add @nuxtjs/newsletter # yarn
npm i @nuxtjs/newsletter # npm
Basic usage
Firstly, you need to add @nuxtjs/newsletter
to your Nuxt config.
// nuxt.config.js
{
modules: [
"@nuxtjs/newsletter",
],
newsletter: {
// mailchimp | revue | buttondown
<YOUR_NEWSLETTER_PROVIDER>: {
// options like apiKey
}
}
}
Then you can start using @nuxtjs/newsletter
in your app!
<template>
<div>
<newsletter-form />
</div>
</template>
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
yarn dev
ornpm run dev