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" />,
},
],
},
};
|