@@ -18,7 +18,8 @@ In this mode the \`Tab\` component is in charge for swapping the panel content.
18
18
tabs={[
19
19
{ label: "Tab 1", iconId: "fr-icon-add-line", content: <p>Content of tab1</p> },
20
20
{ label: "Tab 2", iconId: "fr-icon-ball-pen-fill", isDefault: true, content: <p>Content of tab2</p> },
21
- { label: "Tab 3", content: <p>Content of tab3</p> }
21
+ { label: "Tab 3", content: <p>Content of tab3</p> },
22
+ { label: "Tab 4", content: null, disabled: true }
22
23
]}
23
24
/>
24
25
\`\`\`
@@ -40,6 +41,7 @@ function ControlledTabs() {
40
41
{ tabId: "tab1", label: "Tab 1", iconId: "fr-icon-add-line" },
41
42
{ tabId: "tab2", label: "Tab 2", iconId: "fr-icon-ball-pen-fill" },
42
43
{ tabId: "tab3", label: "Tab 3" },
44
+ { tabId: "tab4", label: "Tab 4", disabled: true },
43
45
]}
44
46
onTabChange={setSelectedTabId}
45
47
>
@@ -64,7 +66,8 @@ export const Default = getStory({
64
66
"iconId" : "fr-icon-ball-pen-fill" ,
65
67
"content" : < p > Content of tab2</ p >
66
68
} ,
67
- { "label" : "Tab 3" , "content" : < p > Content of tab3</ p > }
69
+ { "label" : "Tab 3" , "content" : < p > Content of tab3</ p > } ,
70
+ { "label" : "Tab 4" , "content" : null , disabled : true }
68
71
] ,
69
72
"label" : "Name of the tabs system" ,
70
73
...logCallbacks ( [ "onTabChange" ] )
@@ -79,7 +82,8 @@ export const WithTab2OpenedByDefault = getStory({
79
82
"isDefault" : true ,
80
83
"content" : < p > Content of tab2</ p >
81
84
} ,
82
- { "label" : "Tab 3" , "content" : < p > Content of tab3</ p > }
85
+ { "label" : "Tab 3" , "content" : < p > Content of tab3</ p > } ,
86
+ { "label" : "Tab 4" , "content" : null , "disabled" : true }
83
87
] ,
84
88
"label" : "Name of the tabs system" ,
85
89
...logCallbacks ( [ "onTabChange" ] )
0 commit comments