react-light-tour

A lightweight step-by-step onboarding tour.

A small, customisable React component that walks users through your app one element at a time.

An earlier package. It still works and stays on npm; my newer work is in the other packages.

npm install react-light-tour
Version
v0.1.2
Published
Jul 2024
License
MIT
Stars
5
Requirements
React.
Usagetsx
import Tour, { Steps } from "react-light-tour";

const steps: Steps = [
  { selector: "#step1", content: "This is the first step" },
  { selector: "#step2", content: "This is the second step" },
];

<Tour isRun={isTourRunning} steps={steps} bodyScrollDisable />

What it does

Selector-based steps

Point each step at any CSS selector.

Remembers completion

Pass saveKey and a finished tour stays finished.

Your buttons, your text

Class names and labels for next, previous and done.

Documentation

Everything is documented.

Start reading

The full README, with installation, usage and props, is on the docs page.

More in react components