-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathDesktopPageWithLeftNav.figma.tsx
More file actions
73 lines (71 loc) · 2.09 KB
/
DesktopPageWithLeftNav.figma.tsx
File metadata and controls
73 lines (71 loc) · 2.09 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import figma from '@figma/code-connect';
import {
Masthead,
MastheadBrand,
MastheadContent,
MastheadLogo,
MastheadMain,
MastheadToggle,
Page,
PageSection,
PageSidebar,
PageSidebarBody,
PageToggleButton,
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=25656-311374',
{
props: {
masthead: (
<Masthead>
<MastheadMain>
<MastheadToggle>
<PageToggleButton
isHamburgerButton
aria-label="Global navigation"
isSidebarOpen={true}
onSidebarToggle={() => {}}
id="vertical-nav-toggle"
/>
</MastheadToggle>
<MastheadBrand>
<MastheadLogo href="https://patternfly.org" target="_blank">
Logo
</MastheadLogo>
</MastheadBrand>
</MastheadMain>
<MastheadContent>
<Toolbar id="vertical-toolbar">
<ToolbarContent>
<ToolbarItem>header-tools</ToolbarItem>
</ToolbarContent>
</Toolbar>
</MastheadContent>
</Masthead>
),
sidebar: (
<PageSidebar isSidebarOpen={true} id="vertical-sidebar">
<PageSidebarBody>Navigation</PageSidebarBody>
</PageSidebar>
)
},
example: (props) => (
<Page masthead={props.masthead} sidebar={props.sidebar}>
<PageSection aria-labelledby="section-1">
<h2 id="section-1">Vertical nav example section 1</h2>
</PageSection>
<PageSection variant="secondary" aria-labelledby="section-2">
<h2 id="section-2">Vertical nav example section 2 with secondary variant styling</h2>
</PageSection>
<PageSection aria-labelledby="section-3">
<h2 id="section-3">Vertical nav example section 3</h2>
</PageSection>
</Page>
)
}
);