Skip to content

Commit 7fa7c99

Browse files
committed
chore: breadcrumb-story
1 parent 7a7779c commit 7fa7c99

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/stories/breadcrumb.stories.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import type { Meta, StoryObj } from "@storybook/react";
2+
3+
import { IPreviewArgs } from "./utils";
4+
5+
import BreadcrumbComponent from "../lib/breadcrumb";
6+
7+
const meta = {
8+
component: BreadcrumbComponent,
9+
title: "Pagination/Breadcrumb",
10+
tags: ["autodocs"],
11+
argTypes: {
12+
variant: {
13+
options: ["primary", "secondary"],
14+
control: { type: "radio" },
15+
},
16+
clickable: {
17+
control: "boolean",
18+
},
19+
},
20+
} satisfies Meta<typeof BreadcrumbComponent>;
21+
22+
export default meta;
23+
24+
type Story = StoryObj<typeof meta> & IPreviewArgs;
25+
26+
export const Breadcrumb: Story = {
27+
args: {
28+
variant: "primary",
29+
themeUI: "dark",
30+
backgroundUI: "light",
31+
items: [
32+
{ text: "General Court", value: 0 },
33+
{ text: "Blockchain", value: 1 },
34+
{ text: "Non-Technical", value: 2 },
35+
],
36+
clickable: false,
37+
},
38+
};

0 commit comments

Comments
 (0)