Installation

Learn how to install Norska with Alpine

As a module

Run the following command to install Norska.

npm install @norska/core alpinejs three

Import Norska and initialize it as an Alpine plugin.

Please note that Norska must be registered as a plugin before Alpine is initialized

import Alpine from 'alpinejs';
import norska from '@norska/core';

// Initialize Norksa
const Norska = norska({/* options... */});

// Register Norska as an Alpine plugin
Alpine.plugin(Norska)
window.Alpine = Alpine
Alpine.start()

Last updated