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
|
import type { Meta, StoryObj } from '@storybook/react';
import { NavbarItem } from './navbar-item';
const meta = {
component: NavbarItem,
title: 'Organisms/Navbar/Item',
} satisfies Meta<typeof NavbarItem>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Example: Story = {
args: {
children: 'The modal contents.',
icon: 'cog',
id: 'default',
label: 'Open example',
},
};
export const ModalVisibleAfterBreakpoint: Story = {
args: {
children: 'The modal contents.',
icon: 'cog',
id: 'modal-visible',
label: 'Open example',
modalVisibleFrom: 'md',
},
};
|