import type { Meta, StoryObj } from '@storybook/react'; import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, } from './breadcrumb'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '../dropdown-menu'; import { Home } from 'lucide-react'; import React from 'react'; type BreadcrumbStoryProps = React.ComponentProps & { homeLabel?: string; categoryLabel?: string; pageLabel?: string; }; const meta: Meta = { title: 'UI/Breadcrumb', component: Breadcrumb, render: args => , argTypes: { homeLabel: { control: 'text', description: 'The label for the home link.', defaultValue: 'Home', }, categoryLabel: { control: 'text', description: 'The label for the category link.', defaultValue: 'Components', }, pageLabel: { control: 'text', description: 'The label for the current page.', defaultValue: 'Breadcrumb', }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { homeLabel: 'Home', categoryLabel: 'Components', pageLabel: 'Breadcrumb', }, render: ({ homeLabel, categoryLabel, pageLabel, ...args }) => ( {homeLabel} {categoryLabel} {pageLabel} ), }; export const WithEllipsis: Story = { render: () => ( Home Components Breadcrumb ), }; export const CustomSeparator: Story = { render: () => ( Home Components Breadcrumb ), };