introh-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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,
});

Package Sidebar

Install

npm i introh-js

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

13.5 kB

Total Files

7

Last publish

Collaborators

  • hunghg255