aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/nav/main-nav/main-nav.stories.tsx
blob: c18d0d54e57aea0c6f525693d6de6f51b8bb847e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import type { Meta, StoryObj } from '@storybook/react';
import { Icon } from '../../../atoms';
import { MainNav } from './main-nav';

const meta = {
  component: MainNav,
  title: 'Organisms/Nav/MainNav',
} satisfies Meta<typeof MainNav>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Example: Story = {
  args: {
    items: [
      { id: 'home', label: 'Home', href: '#home' },
      { id: 'blog', label: 'Blog', href: '#blog' },
      { id: 'projects', label: 'Projects', href: '#projects' },
      { id: 'contact', label: 'Contact', href: '#contact' },
    ],
  },
};

export const WithLogo: Story = {
  args: {
    items: [
      {
        id: 'home',
        label: 'Home',
        href: '#home',
        logo: <Icon aria-hidden shape="home" />,
      },
      {
        id: 'blog',
        label: 'Blog',
        href: '#blog',
        logo: <Icon aria-hidden shape="posts-stack" />,
      },
      {
        id: 'projects',
        label: 'Projects',
        href: '#projects',
        logo: <Icon aria-hidden shape="computer" />,
      },
      {
        id: 'contact',
        label: 'Contact',
        href: '#contact',
        logo: <Icon aria-hidden shape="envelop" />,
      },
    ],
  },
};