Installation

$ npm install --save @onboardist/ui

Usage

Onboardist creates the global variable Onboardist.UI that has global options and methods. You can also import it:

// Global variable

Onboardist.UI.configure(...);

// Import
import { default as OnboardistUI } from '@onboardist/ui';

OnboardistUI.configure(...)

Import and use individual components:

import { Hotspot, Tooltip } from '@onboardist/ui';

const hotspot = new Hotspot({ attach: '#foo' });
const tooltip = new Tooltip({ attach: '#bar' });