2026-04-23 20:52:43 +03:00
|
|
|
import type { Meta, StoryObj } from '@storybook/nextjs-vite';
|
|
|
|
|
import { MobileNav } from './MobileNav';
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
|
|
|
// MobileNav is lg:hidden — it renders only on mobile viewports.
|
|
|
|
|
// Use the viewport toolbar in Storybook to switch to a mobile size to see it.
|
|
|
|
|
const meta: Meta<typeof MobileNav> = {
|
|
|
|
|
title: 'Widgets/MobileNav',
|
|
|
|
|
component: MobileNav,
|
|
|
|
|
parameters: {
|
|
|
|
|
viewport: {
|
|
|
|
|
defaultViewport: 'mobile1',
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-04-23 20:52:43 +03:00
|
|
|
};
|
2026-04-19 09:19:17 +03:00
|
|
|
|
2026-04-23 20:52:43 +03:00
|
|
|
export default meta;
|
2026-04-19 09:19:17 +03:00
|
|
|
|
2026-04-23 20:52:43 +03:00
|
|
|
type Story = StoryObj<typeof MobileNav>;
|
2026-04-19 09:19:17 +03:00
|
|
|
|
|
|
|
|
export const Default: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
items: [
|
|
|
|
|
{ id: 'bio', label: 'Bio', number: '01' },
|
|
|
|
|
{ id: 'work', label: 'Work', number: '02' },
|
|
|
|
|
{ id: 'contact', label: 'Contact', number: '03' },
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-04-23 20:52:43 +03:00
|
|
|
};
|