You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Enables children to fill the available vertical space. Child page sections or groups that should fill should be passed the isFilled property. */
120
120
isContentFilled?: boolean;
121
+
/** Flag indicating the page has non-PatternFly elements for header and footer and should be rendered plainly. Use PageHeader and PageFooter to wrap custom header and footer content to ensure the layout is maintained. */
122
+
isPlain?: boolean;
123
+
/** Content rendered inside the page footer */
124
+
footer?: React.ReactNode;
121
125
}
122
126
123
127
exportinterfacePageState{
@@ -141,7 +145,8 @@ class Page extends Component<PageProps, PageState> {
Copy file name to clipboardExpand all lines: packages/react-core/src/components/Page/examples/Page.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,11 +33,15 @@ The `<MastheadMain>` component includes the smaller area that typically contains
33
33
- 1 or more `<PageSidebarBody>` components inside `<PageSidebar>` for vertical navigation or other sidebar content
34
34
- 1 or more `<PageSection>` components
35
35
36
-
### Page header
36
+
### Page header and footer
37
37
38
38
To use a page header instead of passing a [masthead](/components/masthead) directly, pass a `<PageHeader>` to the `masthead` property. `<PageHeader>` should only be used to wrap custom header content.
39
39
40
-
```ts file="./PageHeaderContent.tsx"
40
+
`<PageFooter>` can be passed to the `footer` property, and should be used to wrap custom footer content.
41
+
42
+
When using custom a `<PageHeader>` and `<PageFooter>`, the `isPlain` flag should be passed to `<Page>`. This will remove styling on the main container, the height constraints on the page wrapper (so it can grow beyond the viewport), and removes the scroll management from the content section so the window will be what scrolls.
0 commit comments