• Stars
    star
    453
  • Rank 96,573 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TourGuide is a Javascript library written for creating user tours and on-boarding steps for your apps.

TourGuide JS

Intuitive and customisable tours for user application onboarding
Explore the docs ยป


QuickStart

Installation

npm i @sjmc11/tourguidejs

Usage

Include the tourGuide script and style in your project. A CDN method is supported.

// Style
import "@sjmc11/tourguidejs/src/scss/tour.scss"
// JS
import {TourGuideClient} from "@sjmc11/tourguidejs/src/Tour"

Declare steps

Add the [data-tg-tour] attribute to elements that you want to include in your tour. This attribute should contain the relevant text for the tour guide step.

<div data-tg-tour="Welcome aboard ๐Ÿ‘‹> ... </div>

Create a tour

const tg = new TourGuideClient({} : TourGuideOptions)

Start the tour

tg.start()

TourGuide JS uses Floating-Ui for intelligent dialog positioning

See Floating UI for more information.