import { DemoStory } from '../demo/demo-types';
import { SlideTabComponent, SlideTabProps } from './slide-tab-component';
const samplePages = [
{
title: 'Overview',
content: (
Overview
This is the overview tab. It provides a summary of the content.
- Feature A: Smooth horizontal scrolling between tabs
- Feature B: Snap-to-slide behaviour
- Feature C: Active tab indicator
),
},
{
title: 'Details',
content: (
Details
This is the details tab. It shows in-depth information.
The SlideTabComponent uses CSS scroll-snap for smooth, performant tab transitions without any animation
libraries.
),
},
{
title: 'Settings',
content: (
),
},
];
export const slideTabDemo: DemoStory = {
id: 'slide-tab-demo',
text: 'Slide Tab',
args: {
pages: samplePages,
},
render: (args: SlideTabProps) => {
return (
);
},
code: `import { SlideTabComponent } from 'lupine.components/components/slide-tab-component';
const pages = [
{ title: 'Tab 1', content: Content for Tab 1
},
{ title: 'Tab 2', content: Content for Tab 2
},
{ title: 'Tab 3', content: Content for Tab 3
},
];
`,
};