import { HtmlVar } from '../../components';
import { DemoStory } from '../../demo/demo-types';
import { Tour } from './tour';
export const tourDemo: DemoStory = {
id: 'tour-demo',
text: 'Tour (Guidance)',
args: {},
argTypes: {},
render: () => {
const tour = new HtmlVar();
const handleStartTour = () => {
const steps = [
{
target: '#tour-step-1',
title: 'Welcome to Lupine.js',
content: 'This is the first step of your product tour. You can highlight any element!',
placement: 'bottom' as const,
},
{
target: '#tour-step-2',
title: 'Main Feature',
content: 'Here is a key feature we want to draw your attention to.',
placement: 'right' as const,
},
{
target: '#tour-step-3',
title: 'Action Button',
content: 'Click here to perform the primary action on this page.',
placement: 'top' as const,
},
];
tour.value = (
console.log('Tour skipped or closed')}
onFinish={() => console.log('Tour completed!')}
/>
);
};
return (
Tour Component Demo
The Tour component is used to guide users through your application by highlighting specific elements.