nuxt-newsletter
v0.2.0
Published
Newsletter module for Nuxt
Downloads
116
Maintainers
Readme
nuxt-newsletter
Newsletter module for Nuxt 3
Features
- Nuxt 3 ready
- Easy integration with Mailchimp, Revue, Buttondown
- Unstyled NewletterForm.vue component
- Handy useNewsletterSubscribe composable
- TypeScript support
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
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
yarn dev
ornpm run dev