-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shadcn/component/ui): create navigation-menu story
- Loading branch information
1 parent
9043806
commit f77d9fb
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
libs/external/shadcn/components/ui/navigation-menu.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { | ||
NavigationMenu, | ||
NavigationMenuContent, | ||
NavigationMenuItem, | ||
NavigationMenuLink, | ||
NavigationMenuList, | ||
NavigationMenuTrigger, | ||
} from './navigation-menu' | ||
|
||
const meta = { | ||
title: 'Shadcn-ui/NavigationMenu', | ||
component: NavigationMenu, | ||
tags: ['autodocs'], | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
args: { | ||
children: ( | ||
<NavigationMenuList> | ||
<NavigationMenuItem> | ||
<NavigationMenuTrigger>Products</NavigationMenuTrigger> | ||
<NavigationMenuContent className="px-1 py-4"> | ||
<NavigationMenuLink href="/products">View Products</NavigationMenuLink> | ||
</NavigationMenuContent> | ||
</NavigationMenuItem> | ||
<NavigationMenuItem> | ||
<NavigationMenuLink href="/about">About</NavigationMenuLink> | ||
</NavigationMenuItem> | ||
</NavigationMenuList> | ||
), | ||
}, | ||
argTypes: { | ||
children: { control: { disable: true } }, | ||
}, | ||
} satisfies Meta<typeof NavigationMenu> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = {} |