-
Notifications
You must be signed in to change notification settings - Fork 382
Expand file tree
/
Copy pathDesktopPageWithHorizontalNav.figma.tsx
More file actions
59 lines (57 loc) · 1.73 KB
/
DesktopPageWithHorizontalNav.figma.tsx
File metadata and controls
59 lines (57 loc) · 1.73 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import figma from '@figma/code-connect';
import {
Masthead,
MastheadMain,
MastheadBrand,
MastheadLogo,
MastheadContent,
Page,
PageSection,
PageSidebar,
PageSidebarBody,
Toolbar,
ToolbarContent,
ToolbarItem
} from '@patternfly/react-core';
// Documentation for Page can be found at https://www.patternfly.org/components/page
figma.connect(Page, 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=7620-35193', {
props: {
masthead: (
<Masthead inset={{ default: 'insetXs' }}>
<MastheadMain>
<MastheadBrand>
<MastheadLogo href="https://patternfly.org" target="_blank">
Logo
</MastheadLogo>
</MastheadBrand>
</MastheadMain>
<MastheadContent>
<Toolbar id="horizontal-toolbar">
<ToolbarContent>
<ToolbarItem>Navigation</ToolbarItem>
<ToolbarItem>header-tools</ToolbarItem>
</ToolbarContent>
</Toolbar>
</MastheadContent>
</Masthead>
),
sidebar: (
<PageSidebar isSidebarOpen={false} id="vertical-sidebar">
<PageSidebarBody>Navigation</PageSidebarBody>
</PageSidebar>
)
},
example: (props) => (
<Page masthead={props.masthead}>
<PageSection aria-labelledby="section-1">
<h2 id="section-1">Horizontal nav example section 1</h2>
</PageSection>
<PageSection variant="secondary" aria-labelledby="section-2">
<h2 id="section-2">Horizontal nav example section 2 with secondary variant styling</h2>
</PageSection>
<PageSection aria-labelledby="section-3">
<h2 id="section-3">Horizontal nav example section 3</h2>
</PageSection>
</Page>
)
});