From c6f6f8f895e68f2d85ca681997ef613d982bac14 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 20 Oct 2023 14:06:48 +0200 Subject: refactor(components): rewrite NavList component * extract NavItem from NavList * remove `kind` and `listClassName` props (since the consumer has control over NavList, NavItem and NavLink components these props are obsolete) --- .../molecules/nav/nav-list/nav-list.stories.tsx | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/components/molecules/nav/nav-list/nav-list.stories.tsx (limited to 'src/components/molecules/nav/nav-list/nav-list.stories.tsx') diff --git a/src/components/molecules/nav/nav-list/nav-list.stories.tsx b/src/components/molecules/nav/nav-list/nav-list.stories.tsx new file mode 100644 index 0000000..c165ac7 --- /dev/null +++ b/src/components/molecules/nav/nav-list/nav-list.stories.tsx @@ -0,0 +1,51 @@ +import type { ComponentMeta, ComponentStory } from '@storybook/react'; +import { NavItem } from '../nav-item'; +import { NavLink } from '../nav-link'; +import { NavList } from './nav-list'; + +/** + * Nav - Storybook Meta + */ +export default { + title: 'Molecules/Nav/NavList', + component: NavList, +} as ComponentMeta; + +const Template: ComponentStory = (args) => ( + +); + +const NavItems = () => ( + <> + + + + + + + + + + + + + +); + +/** + * NavList Stories - Default + */ +export const Default = Template.bind({}); +Default.args = { + children: , +}; + +/** + * NavList Stories - Inlined + */ +export const Inlined = Template.bind({}); +Inlined.args = { + children: , + isInline: true, + spacing: 'sm', +}; -- cgit v1.2.3