-
Notifications
You must be signed in to change notification settings - Fork 14
/
BoxPageLayout.tsx
44 lines (41 loc) · 1.6 KB
/
BoxPageLayout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import {
DxcParagraph,
DxcFlex,
DxcAlert,
DxcLink,
} from "@dxc-technology/halstack-react";
import PageHeading from "@/common/PageHeading";
import TabsPageHeading from "@/common/TabsPageLayout";
import ComponentHeading from "@/common/ComponentHeading";
const BoxPageHeading = ({ children }: { children: React.ReactNode }) => {
const tabs = [
{ label: "Code", path: "/components/box" },
{ label: "Usage", path: "/components/box/usage" },
{ label: "Specifications", path: "/components/box/specifications" },
];
return (
<DxcFlex direction="column" gap="3rem">
<PageHeading>
<DxcFlex direction="column" gap="2rem">
<ComponentHeading name="Box" />
<DxcParagraph>
There are different ways to organise the content on the webpage to
facilitate the user according to his nature of interaction with the
content like forms, tables, lists etc. One of the best ways to
organize the webpage is by using groups of related content, this can
be achieved by using a dedicated Box component.
</DxcParagraph>
<DxcAlert type="warning" size="fillParent">
This component will be removed from Halstack Design System in the future.
Please consider the new{" "}
<DxcLink href="/components/container">Container</DxcLink> component
as an alternative for your current use cases.
</DxcAlert>
<TabsPageHeading tabs={tabs}></TabsPageHeading>
</DxcFlex>
</PageHeading>
{children}
</DxcFlex>
);
};
export default BoxPageHeading;