JSPM

introh-js

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q22624F
  • License ISC

Package Exports

  • introh-js
  • introh-js/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (introh-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Intro for page

npm version npm npm All Contributors

Live Demo

Installation

NPM

To install the latest stable version:

npm install --save introh-js

or

yarn add introh-js

Basic usage:

@import 'introh-js/dist/styles.css';
interface IIntroJs {
   steps: { element: string; children: string }[];
   isStart?: boolean;
}

new IntroJs(options: IIntroJs);

const steps = [
  {
    element: '.title',
    children: 'Title One',
  },
  {
    element: '.second',
    children: 'Title Two',
  },
  {
    element: '.three',
    children: 'Title Three',
  },
  {
    element: '.cat',
    children: 'Cat',
  },
];
const instante = new IntroJs({
  steps,
});