NextStep - Lightweight Next.js Onboarding Library Logo

NextStep

A lightweight onboarding library for React applications.
Create engaging, interactive product tours with ease.

woile's avatar
Uzaaft's avatar
nason's avatar
tyler-dot-earth's avatar
memorysaver's avatar
renderkid's avatar
BurnedChris's avatar
ony3000's avatar
h4gen's avatar
anks2k's avatar
282developers starred

Why Choose NextStep?

Native React

Built with React from the ground up for full compatibility with your React applications.

Motion Animations

Smooth, customizable animations powered by Framer Motion for engaging user experiences.

Interactive

Trigger tour steps based on user interactions with forms and other elements for dynamic, interactive experiences.

Fully Customizable

Provide your own custom card components to completely control the appearance of your tours. Customize animations, styling, and behavior.

Lightweight

Minimal bundle size with zero dependencies beyond Motion for fast loading times.

Cross-Page Routing

Create tours that span multiple pages with built-in navigation adapters for Next.js, React Router, and Remix.

Event Callbacks

Track user progress with callbacks for analytics and custom behaviors. Perform actions when a step is started, completed, skipped, or when the tour is finished.

See NextStep in action

NextStep - Lightweight Next.js Onboarding Library Fazier Badge 2nd Product of the WeekNextStep - Lightweight Next.js Onboarding Library Fazier Badge Daily Product of the DayNextStep - Lightweight Next.js Onboarding Library Uneed POTD3 Badge

Get Started

Install NextStep

Add NextStep to your project with your preferred package manager

Built with

We are improving NextStep.

Sign up to hear about our latest updates:

Quick Start Guide

  1. Install NextStep in your project using npm, yarn, or pnpm.
  2. Wrap your app with the NextStepProvider:
    import { NextStepProvider, NextStepReact } from 'nextstepjs';
    
    const steps = [
      {
        tour: "mainTour",
        steps: [
          {
            icon: "👋",
            title: "Welcome",
            content: "Let's get started with NextStep!",
            selector: "#step1",
            side: "right",
            showControls: true,
            showSkip: true
          },
          // More steps...
        ]
      }
    ];
    
    function App() {
      return (
        <NextStepProvider>
          <NextStepReact steps={steps}>
            <YourAppContent />
          </NextStepReact>
        </NextStepProvider>
      );
    }
  3. Define your steps:
    import { Tour } from 'nextstepjs';
    
    const steps : Tour[] = [
      {
        tour: "mainTour",
        steps: [
          {
            title: "Welcome",
            content: "Let's get started with NextStep!",
            selector: "#step1",
            // ... other step properties
          },
          // ... more steps
        ]
      }
    ];
  4. Add id attributes to your HTML elements to target them in your steps.
  5. Use NextStep hook to control the tour from your components.
    import { useNextStep } from 'nextstepjs';
    
    const MyComponent = () => {
      const { startNextStep, closeNextStep, currentTour, currentStep, setCurrentStep, isNextStepVisible } = useNextStep();
    
      const handleStartTour = () => {
        startNextStep("mainTour");
      };
    
      return (
        <button onClick={handleStartTour}>Start Tour</button>
      );
    };

Frequently Asked Questions

What is NextStepjs?

NextStepjs is an open-source, lightweight onboarding library designed for React applications. It enables developers to create engaging, interactive product tours with ease, enhancing user experience and facilitating seamless onboarding processes.

How do I install NextStepjs in my React project?

To install NextStepjs, use your preferred package manager. For example, with npm, run: npm install nextstepjs motion. This command installs both NextStepjs and Framer Motion, which is utilized for smooth animations.

How do I get started with NextStepjs?

To get started with NextStepjs, first install the package using your preferred package manager. Then, wrap your React application with the NextStepProvider and define your onboarding steps. Check the Docs for detailed setup instructions.