Getting Started

Installation

Get started with Nuxt Motion Block.

Prerequisites

Nuxt Motion Block requires the following peer dependencies:

These dependencies are installed automatically when you add the module.

Installation

Install Nuxt Motion Block with one command:

npm install nuxt-motion-block

Or let Nuxt do it for you:

npx nuxi module add nuxt-motion-block

Adding the Module

The command above registers the module for you. If you installed it manually, add it to nuxt.config.ts:

nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    '@nuxt/ui',
    'motion-v/nuxt',
    'nuxt-motion-block'
  ]
})

That's it. Every component is auto-registered with the M prefix, and the CSS is already included.