File tree Expand file tree Collapse file tree 4 files changed +40
-1
lines changed
website/screens/components Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import basicUsage from "./examples/basicUsage";
1313import routerLink from "./examples/routerLink" ;
1414import routerLinkV6 from "./examples/routerLinkV6" ;
1515import nextLink from "./examples/nextLink" ;
16+ import icons from "./examples/icons" ;
1617import TableCode from "@/common/TableCode" ;
1718import StatusBadge from "@/common/StatusBadge" ;
1819
@@ -287,6 +288,14 @@ const sections = [
287288 } ,
288289 ] ,
289290 } ,
291+ {
292+ title : "Icons and notifications" ,
293+ content : (
294+ < >
295+ < Example example = { icons } defaultIsVisible />
296+ </ >
297+ ) ,
298+ } ,
290299 ] ,
291300 } ,
292301] ;
Original file line number Diff line number Diff line change 1+ import { DxcNavTabs , DxcInset } from "@dxc-technology/halstack-react" ;
2+
3+ const code = `() => {
4+ return (
5+ <DxcInset space="2rem">
6+ <DxcNavTabs iconPosition="left">
7+ <DxcNavTabs.Tab href="#" active icon="favorite" notificationNumber>
8+ Tab 1
9+ </DxcNavTabs.Tab>
10+ <DxcNavTabs.Tab href="#" disabled icon="favorite" notificationNumber={5}>
11+ Tab 2
12+ </DxcNavTabs.Tab>
13+ <DxcNavTabs.Tab href="#" icon="favorite" notificationNumber={120}>
14+ Tab 3
15+ </DxcNavTabs.Tab>
16+ </DxcNavTabs>
17+ </DxcInset>
18+ );
19+ }` ;
20+
21+ const scope = {
22+ DxcNavTabs,
23+ DxcInset,
24+ } ;
25+
26+ export default { code, scope } ;
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ const sections = [
171171 content : < Example example = { uncontrolled } defaultIsVisible /> ,
172172 } ,
173173 {
174- title : "Icons" ,
174+ title : "Icons and notifications " ,
175175 content : < Example example = { icons } defaultIsVisible /> ,
176176 } ,
177177 ] ,
Original file line number Diff line number Diff line change @@ -36,14 +36,18 @@ const code = `() => {
3636 {
3737 label: "3G Mobile",
3838 icon: mobileIcon,
39+ notificationNumber: true
3940 },
4041 {
4142 label: "Ethernet",
4243 icon: "settings_ethernet",
44+ isDisabled: true,
45+ notificationNumber: 2
4346 },
4447 {
4548 label: "Wifi",
4649 icon: "wifi",
50+ notificationNumber: 120
4751 },
4852 ]}
4953 ></DxcTabs>
You can’t perform that action at this time.
0 commit comments