File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments