import type { Meta, StoryObj } from '@storybook/react' import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './Breadcrumb' const meta: Meta = { title: 'Navigation/Breadcrumb/Primitives', component: Breadcrumb, argTypes: { separator: { control: { disable: true, }, }, }, } export default meta type Story = StoryObj export const Default: Story = { render: (_args, context) => { const openProp = context.viewMode === 'story' ? { defaultOpen: true } : {} return ( Home Products Category ) }, } export const WithEllipsis: Story = { render: (_args) => ( Home Products Category ), } export const LongPath: Story = { render: (_args) => ( Home Electronics Computers Products Category ), } const CustomLink = ({ href, children, ...props }: { href: string children: React.ReactNode }) => { return ( {children} ) } export const WithCustomLinkAsChild: Story = { render: (_args) => ( Home Products ), } export const WithCustomLinkInEllipsis: Story = { render: (_args) => ( Home ( {children} )} /> Products Category ), }