JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q88355F
  • License MIT

A plug-and-play React component for creating customizable onboarding tours with tooltips, modals, and smooth user guidance. Built with Tailwind CSS and supports dark mode, Framer Motion animations, and full control over step logic.

Package Exports

  • nfsfu234-tour-guide
  • nfsfu234-tour-guide/styles.css

Readme

🧭 NFSFU234TourGuide

npm
License
jsDelivr

NFSFU234TourGuide is your plug-and-play React library for building clean, interactive, and customizable onboarding experiences. Skip the hassle of building tooltips or modals from scratch β€” this library does the heavy lifting, so you can focus on building dope UIs.


πŸš€ Why Use It?

  • 🎯 Zero to onboarding in minutes
  • 🧱 Modular & composable tour steps
  • 🌈 Built with Tailwind for easy styling
  • πŸŒ“ Dark mode support baked in
  • πŸ”§ Fully customizable β€” control what shows, when, and how
  • 🧠 Smart positioning & user experience design built in

πŸ“‹ Prerequisites

Before installing nfsfu234-tour-guide, make sure your project has the following peer dependencies installed:

npm install react@^19.0.0 react-dom@^19.0.0 tailwindcss@^4 framer-motion@^12.12.1 lucide-react@^0.511.0

Or with Yarn:

yarn add react@^19.0.0 react-dom@^19.0.0 tailwindcss@^4 framer-motion@^12.12.1 lucide-react@^0.511.0

⚠️ Note: These are peer dependencies and are required for the library to work properly. They will not be automatically installed with nfsfu234-tour-guide.

If you're using Tailwind CSS, ensure it's properly configured in your project. See the Tailwind CSS docs for setup guidance.


πŸ“¦ Installation

npm install nfsfu234-tour-guide

or

yarn add nfsfu234-tour-guide

βš™οΈ Basic Usage with Callbacks

import Tour from 'nfsfu234-tour-guide';

const steps = [
  { target: '#step1', content: 'This is the first step of your tour.' },
  { target: '#step2', content: 'Here’s another cool feature!' },
  { target: '#submit-btn', content: 'Click here when you’re done.' },
];

export default function MyApp() {
  return (
    <div>
      <TourGuide
        steps={steps}
        start={true}
        theme="light"
        onFinish={() => {
          console.log('Tour finished β€” trigger follow-up actions or analytics.');
        }}
        onSkip={() => {
          console.log('Tour skipped β€” clean up or log event here.');
        }}
        onStepChange={(currentStep) => {
          console.log(`Moved to step ${currentStep} β€” update state or UI accordingly.`);
        }}
      />
      {/* Your app UI below */}
    </div>
  );
}

☝️ Heads up: Wrap TourGuide around your app or the relevant UI section. Use IDs or classes that exist in the DOM before the tour starts for reliable targeting.


🧩 Props

Prop Type Default Description
steps Array [] Array of step objects with target and content
start Boolean false Whether to auto-start the tour on load
theme String 'light' Theme of the tour: 'light' or 'dark'
onFinish Function null Callback after completing the last step
onSkip Function null Callback when the user skips the tour
onStepChange Function null Callback when the step changes; gets current step index

πŸ“š Docs & Examples

  • πŸ”— Documentation Site: Coming soon
  • πŸ› οΈ Examples Repo: Coming soon
  • πŸ“¦ NPM Package: nfsfu234-tour-guide

πŸ§ͺ Dev Tips

  • Target elements by id or className that exist before the tour starts.
  • Use callbacks to hook in analytics, UI updates, or state management.
  • You can dynamically control tour visibility with start.

πŸ“ License

MIT β€” free to use, tweak, and contribute.
See the LICENSE for details.


πŸ’‘ Final Word

NFSFU234TourGuide is built for devs who want onboarding done right β€” clean UX, no clutter, full control.
Stop wasting time on half-baked solutions. Plug in, guide your users, and get back to building your vision.