Skip to content

Commit 66e1efb

Browse files
committed
Icon and label added to storybook
1 parent f068e8c commit 66e1efb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

packages/lib/src/tabs/Tabs.stories.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,32 @@ const tabsIcon = (iconPosition?: "top" | "left") => (
128128
</DxcTabs>
129129
);
130130

131+
const tabsIconLabel = (iconPosition?: "top" | "left") => (
132+
<DxcTabs iconPosition={iconPosition}>
133+
<DxcTabs.Tab label="Tab 1" icon={iconSVG}>
134+
<></>
135+
</DxcTabs.Tab>
136+
<DxcTabs.Tab label="Tab 2" icon={iconSVG}>
137+
<></>
138+
</DxcTabs.Tab>
139+
<DxcTabs.Tab label="Tab 3" icon={iconSVG} disabled>
140+
<></>
141+
</DxcTabs.Tab>
142+
<DxcTabs.Tab label="Tab 4" icon="filled_star">
143+
<></>
144+
</DxcTabs.Tab>
145+
<DxcTabs.Tab label="Tab 5" icon="mail">
146+
<></>
147+
</DxcTabs.Tab>
148+
<DxcTabs.Tab label="Tab 6" icon="mail">
149+
<></>
150+
</DxcTabs.Tab>
151+
<DxcTabs.Tab label="Tab 7" icon="mail">
152+
<></>
153+
</DxcTabs.Tab>
154+
</DxcTabs>
155+
);
156+
131157
const tabsNotificationIcon = (iconPosition?: "top" | "left") => (
132158
<DxcTabs iconPosition={iconPosition}>
133159
<DxcTabs.Tab label="Tab 1" icon={iconSVG} notificationNumber={true}>
@@ -187,10 +213,12 @@ const Tabs = () => (
187213
<ExampleContainer>
188214
<Title title="With icon position left" theme="light" level={4} />
189215
{tabsIcon()}
216+
{tabsIconLabel()}
190217
</ExampleContainer>
191218
<ExampleContainer>
192219
<Title title="With icon position top" theme="light" level={4} />
193220
{tabsIcon("top")}
221+
{tabsIconLabel("top")}
194222
</ExampleContainer>
195223
<ExampleContainer>
196224
<Title title="With icon and notification number" theme="light" level={4} />

0 commit comments

Comments
 (0)