Introduction
What is Tourista?
Key Characteristics
Quick Example
// components/TourProvider.tsx
'use client';
import { TourProvider as TourProviderComponent, TourMachine } from 'Tourista';
const tourConfig = {
id: 'welcome-tour',
steps: [
{
id: 'welcome',
page: '/',
targetElement: '#hero-section',
title: 'Welcome to Our App!',
content: 'Let us show you around the key features.',
canSkip: true,
canPrev: true,
},
{
id: 'dashboard',
page: '/dashboard',
targetElement: '#stats-panel',
title: 'Your Dashboard',
content: 'Track your progress and analytics here.',
},
],
allowPageNavigation: true, // enable multi-page tours
allowSkip: true, // allow users to skip the tour
};
export function TourProvider({ children }: { children: React.ReactNode }) {
return (
<TourProviderComponent tours={[tourConfig]}>
<TourMachine />
{children}
</TourProviderComponent>
);
}
// app/layout.tsx
import { TourProvider } from '@/components/TourProvider';
function App() {
return (
<TourProvider>
<YourApplication />
</TourProvider>
);
}Features
Core Functionality
Customization
Developer Tools
Core Concepts
State Machine Architecture
Tour Configuration
Step Types
Getting Started
Installation
Requirements
Quick Start Guide
Dependencies
Current Limitations
License
Last updated