DebugPanel
Tailwind CSS Requirement
/* In your global.css or app.css */
@source '../../node_modules/Tourista/dist/**/*.{js,mjs}';Usage
// components/TourProvider.tsx
'use client';
import {
TourProvider as TourProviderComponent,
TourMachine,
DebugPanel,
} from 'Tourista';
export function TourProvider({ children }: { children: React.ReactNode }) {
return (
<TourProviderComponent tours={tours}>
<TourMachine />
{process.env.NODE_ENV === 'development' && (
<DebugPanel tourId='onboarding' />
)}
{children}
</TourProviderComponent>
);
}
// app/layout.tsx
import { TourProvider } from '@/components/TourProvider';
function App() {
return <TourProvider>{/* Your app */}</TourProvider>;
}Props
tourId
Features
Displayed Information
Visual Design
State Detection
Example Usage
Basic Debug Setup
Multiple Tours Debug
Panel States
Active Tour State
Inactive State
Collapsed State
Information Details
Context Display
Navigation Indicators
Async State Indicators
Styling
Important Notes
Conditional Rendering
Props Summary Table
Prop
Type
Required
Default
Description
Display Information Table
Information
Description
Visual Indicator
Last updated