@@ -16,9 +16,9 @@ In this mode the \`Tab\` component is in charge for swapping the panel content.
1616\`\`\`tsx
1717<Tabs
1818 tabs={[
19- { " label" : "Tab 1", " iconId" : "fr-icon-add-line", " content" : <p>Content of tab1</p> },
20- { " label" : "Tab 2", " iconId" : "fr-icon-ball-pen-fill", " content" : <p>Content of tab2</p> },
21- { " label" : "Tab 3", " content" : <p>Content of tab3</p> }
19+ { label: "Tab 1", iconId: "fr-icon-add-line", content: <p>Content of tab1</p> },
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> }
2222 ]}
2323/>
2424\`\`\`
@@ -37,9 +37,9 @@ function ControlledTabs() {
3737 <Tabs
3838 selectedTabId={selectedTabId}
3939 tabs={[
40- { " tabId" : "tab1", " label" : "Tab 1", " iconId" : "fr-icon-add-line" },
41- { " tabId" : "tab2", " label" : "Tab 2", " iconId" : "fr-icon-ball-pen-fill" },
42- { " tabId" : "tab3", " label" : "Tab 3" },
40+ { tabId: "tab1", label: "Tab 1", iconId: "fr-icon-add-line" },
41+ { tabId: "tab2", label: "Tab 2", iconId: "fr-icon-ball-pen-fill" },
42+ { tabId: "tab3", label: "Tab 3" },
4343 ]}
4444 onTabChange={setSelectedTabId}
4545 >
@@ -59,7 +59,12 @@ export default meta;
5959export const Default = getStory ( {
6060 "tabs" : [
6161 { "label" : "Tab 1" , "iconId" : "fr-icon-add-line" , "content" : < p > Content of tab1</ p > } ,
62- { "label" : "Tab 2" , "iconId" : "fr-icon-ball-pen-fill" , "content" : < p > Content of tab2</ p > } ,
62+ {
63+ "label" : "Tab 2" ,
64+ "iconId" : "fr-icon-ball-pen-fill" ,
65+ "isDefault" : true ,
66+ "content" : < p > Content of tab2</ p >
67+ } ,
6368 { "label" : "Tab 3" , "content" : < p > Content of tab3</ p > }
6469 ] ,
6570 "label" : "Name of the tabs system" ,
0 commit comments