Debian Codegraph @

node/@patternfly/react-core/src/components/Masthead/examples/MastheadBasicMixedContent.tsx

raw
1 import {
2 Masthead,
3 MastheadMain,
4 MastheadToggle,
5 MastheadBrand,
6 MastheadLogo,
7 MastheadContent,
8 Button,
9 Flex,
10 FlexItem
11 } from '@patternfly/react-core';
12
13 export const MastheadBasicMixedContent: React.FunctionComponent = () => (
14 <Masthead id="basic-mixed">
15 <MastheadMain>
16 <MastheadToggle>
17 <Button variant="plain" isHamburger onClick={() => {}} aria-label="Global navigation" />
18 </MastheadToggle>
19 <MastheadBrand>
20 <MastheadLogo component="a">Logo</MastheadLogo>
21 </MastheadBrand>
22 </MastheadMain>
23 <MastheadContent>
24 <Flex>
25 <span>Content</span>
26 <Button>Primary</Button>
27 <FlexItem alignSelf={{ default: 'alignSelfFlexEnd' }}>
28 <Button variant="secondary">Secondary</Button>
29 </FlexItem>
30 <FlexItem alignSelf={{ default: 'alignSelfFlexEnd' }}>
31 <Button variant="tertiary">Tertiary</Button>
32 </FlexItem>
33 </Flex>
34 </MastheadContent>
35 </Masthead>
36 );