Setup

Installation

Make sure to enable @nuxt/components in your project.

Add @blokwise/blok dependency to your project:

yarn add @blokwise/blok
npm install @blokwise/blok

Then, add @blokwise/blok to the modules section of nuxt.config.js:

nuxt.config.js
{
  modules: [
    [
      "@blokwise/blok",
      { prefix: "awesome" }
    ]
  ];
}

Options

prefix

  • Type: String
  • Default: ''

The prefix can be used to define prefix for the component name. e.g. if prefixed with 'awesome' the component can be used as AwesomeBlok.

Check the Nuxt.js documentation for more information about installing and using modules in Nuxt.js.