blob: df736a4efaf55394268efbb9d0faf9a6579c46f4 (
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
|
import type { ComponentMeta, ComponentStory } from '@storybook/react';
import { NavLink } from '../nav-link';
import { NavItem } from './nav-item';
/**
* NavItem - Storybook Meta
*/
export default {
title: 'Molecules/Nav/NavItem',
component: NavItem,
argTypes: {
children: {
control: {
type: 'text',
},
description: 'Define the nav item contents.',
type: {
name: 'string',
required: true,
},
},
},
} as ComponentMeta<typeof NavItem>;
const Template: ComponentStory<typeof NavItem> = (args) => (
<ul style={{ margin: 0, padding: 0 }}>
<NavItem {...args} />
</ul>
);
/**
* NavItem Stories - Default
*/
export const Default = Template.bind({});
Default.args = {
children: <NavLink href="#example" label="Example" />,
};
|