@@ -18,7 +18,8 @@ In this mode the \`Tab\` component is in charge for swapping the panel content.
1818 tabs={[
1919 { label: "Tab 1", iconId: "fr-icon-add-line", content: <p>Content of tab1</p> },
2020 { 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 }
2223 ]}
2324/>
2425\`\`\`
@@ -40,6 +41,7 @@ function ControlledTabs() {
4041 { tabId: "tab1", label: "Tab 1", iconId: "fr-icon-add-line" },
4142 { tabId: "tab2", label: "Tab 2", iconId: "fr-icon-ball-pen-fill" },
4243 { tabId: "tab3", label: "Tab 3" },
44+ { tabId: "tab4", label: "Tab 4", disabled: true },
4345 ]}
4446 onTabChange={setSelectedTabId}
4547 >
@@ -64,7 +66,8 @@ export const Default = getStory({
6466 "iconId" : "fr-icon-ball-pen-fill" ,
6567 "content" : < p > Content of tab2</ p >
6668 } ,
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 }
6871 ] ,
6972 "label" : "Name of the tabs system" ,
7073 ...logCallbacks ( [ "onTabChange" ] )
@@ -79,7 +82,8 @@ export const WithTab2OpenedByDefault = getStory({
7982 "isDefault" : true ,
8083 "content" : < p > Content of tab2</ p >
8184 } ,
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 }
8387 ] ,
8488 "label" : "Name of the tabs system" ,
8589 ...logCallbacks ( [ "onTabChange" ] )
0 commit comments