import { commonProps } from "../../utils/storybook"; import { Flex } from "../flex"; import { Text } from "../text"; import { Link } from "../link"; import { NavigationMenu } from "."; import type { StoryObj, Meta } from "@storybook/react"; /** * A collection of links for navigating websites. */ const meta: Meta = { title: "NavigationMenu", component: NavigationMenu, tags: ["autodocs"], args: { items: [ { label: "Content", content: ( Items Collections Projects Users ), }, { label: ( Content w/ Link ), content: ( Collections Projects Users ), }, { label: ( Link ), }, ], }, argTypes: { items: { description: "Sets the items that are rendered in the menu.", }, ...commonProps, }, }; export default meta; type Story = StoryObj; export const Default: Story = { render: (args) => , }; export const OnlyLinks: Story = { render: () => ( Chromaway ), }, { label: ( Chromia ), }, { label: ( Docs ), }, ]} /> ), };