Package Exports
- nfsfu234-tour-guide
- nfsfu234-tour-guide/styles.css
Readme
π§ NFSFU234TourGuide
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
orclassName
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.