@patternfly/react-docs 7.6.0-prerelease.7 → 7.6.0-prerelease.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/package.json +12 -13
  2. package/patternfly-docs/generated/components/about-modal/react.js +149 -0
  3. package/patternfly-docs/generated/components/accordion/react.js +262 -0
  4. package/patternfly-docs/generated/components/action-list/react.js +144 -0
  5. package/patternfly-docs/generated/components/alert/react-demos.js +56 -0
  6. package/patternfly-docs/generated/components/alert/react.js +1433 -0
  7. package/patternfly-docs/generated/components/avatar/react.js +166 -0
  8. package/patternfly-docs/generated/components/back-to-top/react-demos.js +60 -0
  9. package/patternfly-docs/generated/components/back-to-top/react.js +77 -0
  10. package/patternfly-docs/generated/components/backdrop/react.js +64 -0
  11. package/patternfly-docs/generated/components/background-image/react.js +62 -0
  12. package/patternfly-docs/generated/components/badge/react.js +97 -0
  13. package/patternfly-docs/generated/components/banner/react-demos.js +57 -0
  14. package/patternfly-docs/generated/components/banner/react.js +148 -0
  15. package/patternfly-docs/generated/components/brand/react.js +142 -0
  16. package/patternfly-docs/generated/components/breadcrumb/react.js +206 -0
  17. package/patternfly-docs/generated/components/button/react-demos.js +57 -0
  18. package/patternfly-docs/generated/components/button/react.js +826 -0
  19. package/patternfly-docs/generated/components/card/react-demos.js +201 -0
  20. package/patternfly-docs/generated/components/card/react.js +1015 -0
  21. package/patternfly-docs/generated/components/charts/area-chart/-Victory.js +1350 -0
  22. package/patternfly-docs/generated/components/charts/bar-chart/-Victory.js +1334 -0
  23. package/patternfly-docs/generated/components/charts/box-plot-chart/-Victory.js +1282 -0
  24. package/patternfly-docs/generated/components/charts/bullet-chart/-Victory.js +848 -0
  25. package/patternfly-docs/generated/components/charts/colors-for-charts/-Victory.js +192 -0
  26. package/patternfly-docs/generated/components/charts/donut-chart/-Victory.js +426 -0
  27. package/patternfly-docs/generated/components/charts/donut-utilization-chart/-Victory.js +804 -0
  28. package/patternfly-docs/generated/components/charts/legends/-Victory.js +3230 -0
  29. package/patternfly-docs/generated/components/charts/line-chart/-Victory.js +1178 -0
  30. package/patternfly-docs/generated/components/charts/line-chart/ECharts.js +525 -0
  31. package/patternfly-docs/generated/components/charts/patterns/-Victory.js +3382 -0
  32. package/patternfly-docs/generated/components/charts/pie-chart/-Victory.js +377 -0
  33. package/patternfly-docs/generated/components/charts/resize-observer/-Victory.js +2475 -0
  34. package/patternfly-docs/generated/components/charts/sankey-chart/ECharts.js +538 -0
  35. package/patternfly-docs/generated/components/charts/scatter-chart/-Victory.js +1551 -0
  36. package/patternfly-docs/generated/components/charts/skeletons/-Victory.js +4115 -0
  37. package/patternfly-docs/generated/components/charts/sparkline-chart/-Victory.js +955 -0
  38. package/patternfly-docs/generated/components/charts/stack-chart/-Victory.js +1173 -0
  39. package/patternfly-docs/generated/components/charts/threshold-chart/-Victory.js +1166 -0
  40. package/patternfly-docs/generated/components/charts/tooltips/-Victory.js +413 -0
  41. package/patternfly-docs/generated/components/chip/react-deprecated.js +323 -0
  42. package/patternfly-docs/generated/components/clipboard-copy/react.js +373 -0
  43. package/patternfly-docs/generated/components/code-block/react.js +148 -0
  44. package/patternfly-docs/generated/components/code-editor/react.js +659 -0
  45. package/patternfly-docs/generated/components/compass/react-demos.js +147 -0
  46. package/patternfly-docs/generated/components/compass/react.js +440 -0
  47. package/patternfly-docs/generated/components/content/react.js +248 -0
  48. package/patternfly-docs/generated/components/data-list/react-demos.js +90 -0
  49. package/patternfly-docs/generated/components/data-list/react.js +709 -0
  50. package/patternfly-docs/generated/components/date-and-time/calendar-month/react.js +283 -0
  51. package/patternfly-docs/generated/components/date-and-time/date-and-time-picker/react-demos.js +64 -0
  52. package/patternfly-docs/generated/components/date-and-time/date-picker/react-demos.js +83 -0
  53. package/patternfly-docs/generated/components/date-and-time/date-picker/react.js +395 -0
  54. package/patternfly-docs/generated/components/date-and-time/time-picker/react.js +241 -0
  55. package/patternfly-docs/generated/components/description-list/react-demos.js +58 -0
  56. package/patternfly-docs/generated/components/description-list/react.js +743 -0
  57. package/patternfly-docs/generated/components/divider/react.js +126 -0
  58. package/patternfly-docs/generated/components/drag-and-drop/react-demos.js +351 -0
  59. package/patternfly-docs/generated/components/drag-and-drop/react-deprecated.js +184 -0
  60. package/patternfly-docs/generated/components/drag-and-drop/react.js +137 -0
  61. package/patternfly-docs/generated/components/drawer/react.js +598 -0
  62. package/patternfly-docs/generated/components/dual-list-selector/react-deprecated.js +772 -0
  63. package/patternfly-docs/generated/components/dual-list-selector/react.js +594 -0
  64. package/patternfly-docs/generated/components/empty-state/react.js +199 -0
  65. package/patternfly-docs/generated/components/expandable-section/react-demos.js +65 -0
  66. package/patternfly-docs/generated/components/expandable-section/react.js +408 -0
  67. package/patternfly-docs/generated/components/file-upload/multiple-file-upload/react-demos.js +52 -0
  68. package/patternfly-docs/generated/components/file-upload/multiple-file-upload/react.js +398 -0
  69. package/patternfly-docs/generated/components/file-upload/simple-file-upload/react.js +749 -0
  70. package/patternfly-docs/generated/components/forms/checkbox/react.js +222 -0
  71. package/patternfly-docs/generated/components/forms/form/react.js +1106 -0
  72. package/patternfly-docs/generated/components/forms/form-select/react.js +208 -0
  73. package/patternfly-docs/generated/components/forms/radio/react.js +212 -0
  74. package/patternfly-docs/generated/components/forms/text-area/react.js +160 -0
  75. package/patternfly-docs/generated/components/forms/text-input/react.js +216 -0
  76. package/patternfly-docs/generated/components/helper-text/react-demos.js +180 -0
  77. package/patternfly-docs/generated/components/helper-text/react.js +164 -0
  78. package/patternfly-docs/generated/components/hero/react.js +88 -0
  79. package/patternfly-docs/generated/components/hint/react.js +169 -0
  80. package/patternfly-docs/generated/components/icon/react.js +215 -0
  81. package/patternfly-docs/generated/components/input-group/react.js +182 -0
  82. package/patternfly-docs/generated/components/jump-links/react-demos.js +154 -0
  83. package/patternfly-docs/generated/components/jump-links/react.js +212 -0
  84. package/patternfly-docs/generated/components/label/react-demos.js +57 -0
  85. package/patternfly-docs/generated/components/label/react.js +417 -0
  86. package/patternfly-docs/generated/components/list/react.js +175 -0
  87. package/patternfly-docs/generated/components/login-page/react.js +587 -0
  88. package/patternfly-docs/generated/components/masthead/react-demos.js +79 -0
  89. package/patternfly-docs/generated/components/masthead/react.js +291 -0
  90. package/patternfly-docs/generated/components/menus/application-launcher/react-demos.js +769 -0
  91. package/patternfly-docs/generated/components/menus/context-selector/react-demos.js +665 -0
  92. package/patternfly-docs/generated/components/menus/custom-menus/react-demos.js +187 -0
  93. package/patternfly-docs/generated/components/menus/dropdown/react-templates.js +163 -0
  94. package/patternfly-docs/generated/components/menus/dropdown/react.js +998 -0
  95. package/patternfly-docs/generated/components/menus/menu/react.js +1540 -0
  96. package/patternfly-docs/generated/components/menus/menu-toggle/react.js +747 -0
  97. package/patternfly-docs/generated/components/menus/options-menu/react-demos.js +508 -0
  98. package/patternfly-docs/generated/components/menus/select/react-templates.js +257 -0
  99. package/patternfly-docs/generated/components/menus/select/react.js +998 -0
  100. package/patternfly-docs/generated/components/modal/react-deprecated.js +554 -0
  101. package/patternfly-docs/generated/components/modal/react.js +597 -0
  102. package/patternfly-docs/generated/components/navigation/react-demos.js +356 -0
  103. package/patternfly-docs/generated/components/navigation/react.js +409 -0
  104. package/patternfly-docs/generated/components/notification-badge/react.js +196 -0
  105. package/patternfly-docs/generated/components/notification-drawer/react-demos.js +107 -0
  106. package/patternfly-docs/generated/components/notification-drawer/react.js +394 -0
  107. package/patternfly-docs/generated/components/number-input/react.js +210 -0
  108. package/patternfly-docs/generated/components/overflow-menu/react.js +274 -0
  109. package/patternfly-docs/generated/components/page/react-demos.js +149 -0
  110. package/patternfly-docs/generated/components/page/react.js +1352 -0
  111. package/patternfly-docs/generated/components/pagination/react.js +492 -0
  112. package/patternfly-docs/generated/components/panel/react.js +236 -0
  113. package/patternfly-docs/generated/components/popover/react.js +390 -0
  114. package/patternfly-docs/generated/components/progress/react-demos.js +59 -0
  115. package/patternfly-docs/generated/components/progress/react.js +283 -0
  116. package/patternfly-docs/generated/components/progress-stepper/react-demos.js +45 -0
  117. package/patternfly-docs/generated/components/progress-stepper/react.js +219 -0
  118. package/patternfly-docs/generated/components/search-input/react-demos.js +113 -0
  119. package/patternfly-docs/generated/components/search-input/react.js +263 -0
  120. package/patternfly-docs/generated/components/sidebar/react.js +236 -0
  121. package/patternfly-docs/generated/components/simple-list/react.js +200 -0
  122. package/patternfly-docs/generated/components/skeleton/react-demos.js +44 -0
  123. package/patternfly-docs/generated/components/skeleton/react.js +122 -0
  124. package/patternfly-docs/generated/components/skip-to-content/react.js +73 -0
  125. package/patternfly-docs/generated/components/slider/react.js +309 -0
  126. package/patternfly-docs/generated/components/spinner/react.js +111 -0
  127. package/patternfly-docs/generated/components/switch/react.js +163 -0
  128. package/patternfly-docs/generated/components/table/react-demos.js +355 -0
  129. package/patternfly-docs/generated/components/table/react-deprecated.js +1350 -0
  130. package/patternfly-docs/generated/components/table/react.js +3241 -0
  131. package/patternfly-docs/generated/components/tabs/react-demos.js +108 -0
  132. package/patternfly-docs/generated/components/tabs/react.js +1359 -0
  133. package/patternfly-docs/generated/components/text-input-group/react-demos.js +152 -0
  134. package/patternfly-docs/generated/components/text-input-group/react.js +278 -0
  135. package/patternfly-docs/generated/components/tile/react-deprecated.js +242 -0
  136. package/patternfly-docs/generated/components/timestamp/react.js +283 -0
  137. package/patternfly-docs/generated/components/title/react.js +94 -0
  138. package/patternfly-docs/generated/components/toggle-group/react.js +299 -0
  139. package/patternfly-docs/generated/components/toolbar/react-demos.js +66 -0
  140. package/patternfly-docs/generated/components/toolbar/react.js +932 -0
  141. package/patternfly-docs/generated/components/tooltip/react.js +241 -0
  142. package/patternfly-docs/generated/components/tree-view/react.js +429 -0
  143. package/patternfly-docs/generated/components/truncate/react.js +211 -0
  144. package/patternfly-docs/generated/components/wizard/react-demos.js +87 -0
  145. package/patternfly-docs/generated/components/wizard/react-deprecated.js +788 -0
  146. package/patternfly-docs/generated/components/wizard/react.js +986 -0
  147. package/patternfly-docs/generated/developer-guides/open-ui-automation/react.js +285 -0
  148. package/patternfly-docs/generated/foundations-and-styles/layouts/bullseye/react.js +70 -0
  149. package/patternfly-docs/generated/foundations-and-styles/layouts/flex/react.js +506 -0
  150. package/patternfly-docs/generated/foundations-and-styles/layouts/gallery/react.js +94 -0
  151. package/patternfly-docs/generated/foundations-and-styles/layouts/grid/react.js +272 -0
  152. package/patternfly-docs/generated/foundations-and-styles/layouts/level/react.js +87 -0
  153. package/patternfly-docs/generated/foundations-and-styles/layouts/split/react.js +124 -0
  154. package/patternfly-docs/generated/foundations-and-styles/layouts/stack/react.js +112 -0
  155. package/patternfly-docs/generated/index.js +1769 -0
  156. package/patternfly-docs/generated/patterns/card-view/react-demos.js +78 -0
  157. package/patternfly-docs/generated/patterns/filters/react-demos.js +141 -0
  158. package/patternfly-docs/generated/patterns/password-generator/react-demos.js +51 -0
  159. package/patternfly-docs/generated/patterns/password-strength/react-demos.js +61 -0
  160. package/patternfly-docs/generated/patterns/primary-detail/react-demos.js +124 -0
  161. package/patternfly-docs/generated/patterns/right-to-left/react-demos.js +81 -0
  162. package/LICENSE +0 -21
@@ -0,0 +1,440 @@
1
+ import React from 'react';
2
+ import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components';
3
+ import { useRef, useState, useEffect } from 'react';
4
+ import '../../../../../react-core/src/components/Compass/examples/./compass.css';
5
+ const pageData = {
6
+ "id": "Compass",
7
+ "section": "components",
8
+ "subsection": "",
9
+ "deprecated": false,
10
+ "template": false,
11
+ "beta": true,
12
+ "demo": false,
13
+ "newImplementationLink": false,
14
+ "source": "react",
15
+ "tabName": null,
16
+ "slug": "/components/compass/react",
17
+ "sourceLink": "https://github.com/patternfly/patternfly-react/blob/main/packages/react-core/src/components/Compass/examples/Compass.md",
18
+ "relPath": "packages/react-core/src/components/Compass/examples/Compass.md",
19
+ "propComponents": [
20
+ {
21
+ "name": "Compass",
22
+ "description": "",
23
+ "props": [
24
+ {
25
+ "name": "className",
26
+ "type": "string",
27
+ "description": "Additional classes added to the Compass."
28
+ },
29
+ {
30
+ "name": "dock",
31
+ "type": "React.ReactNode",
32
+ "description": "Content of the docked navigation area of the layout"
33
+ },
34
+ {
35
+ "name": "drawerContent",
36
+ "type": "React.ReactNode",
37
+ "description": "Content rendered in an optional drawer wrapping the layout"
38
+ },
39
+ {
40
+ "name": "drawerProps",
41
+ "type": "DrawerProps",
42
+ "description": "Additional props passed to the drawer"
43
+ },
44
+ {
45
+ "name": "footer",
46
+ "type": "React.ReactNode",
47
+ "description": "Content placed at the bottom of the layout"
48
+ },
49
+ {
50
+ "name": "header",
51
+ "type": "React.ReactNode",
52
+ "description": "Content placed at the top of the compass layout"
53
+ },
54
+ {
55
+ "name": "isDockExpanded",
56
+ "type": "boolean",
57
+ "description": "Flag indicating the docked nav is expanded on mobile. Only applies when dock content is passed.",
58
+ "beta": true
59
+ },
60
+ {
61
+ "name": "isDockTextExpanded",
62
+ "type": "boolean",
63
+ "description": "Flag indicating the docked nav should display text on desktop. Only applies when dock content is passed, and\nwill handle toggling the visibility of the text in individual isDocked components.",
64
+ "beta": true
65
+ },
66
+ {
67
+ "name": "isFooterExpanded",
68
+ "type": "boolean",
69
+ "description": "Flag indicating if the footer is expanded",
70
+ "defaultValue": "true"
71
+ },
72
+ {
73
+ "name": "isHeaderExpanded",
74
+ "type": "boolean",
75
+ "description": "Flag indicating if the header is expanded",
76
+ "defaultValue": "true"
77
+ },
78
+ {
79
+ "name": "isSidebarEndExpanded",
80
+ "type": "boolean",
81
+ "description": "Flag indicating if the end sidebar is expanded",
82
+ "defaultValue": "true"
83
+ },
84
+ {
85
+ "name": "isSidebarStartExpanded",
86
+ "type": "boolean",
87
+ "description": "Flag indicating if the start sidebar is expanded",
88
+ "defaultValue": "true"
89
+ },
90
+ {
91
+ "name": "main",
92
+ "type": "React.ReactNode",
93
+ "description": "Content placed at the center of the layout"
94
+ },
95
+ {
96
+ "name": "masthead",
97
+ "type": "React.ReactNode",
98
+ "description": "The horizontal masthead content (e.g. <Masthead />). This masthead will only render when dock content is passed and only at mobile viewports."
99
+ },
100
+ {
101
+ "name": "sidebarEnd",
102
+ "type": "React.ReactNode",
103
+ "description": "Content placed at the horizontal end of the layout, after the main content"
104
+ },
105
+ {
106
+ "name": "sidebarStart",
107
+ "type": "React.ReactNode",
108
+ "description": "Content placed at the horizontal start of the layout, before the main content"
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "name": "CompassHeader",
114
+ "description": "",
115
+ "props": [
116
+ {
117
+ "name": "logo",
118
+ "type": "React.ReactNode",
119
+ "description": "Content of the logo area"
120
+ },
121
+ {
122
+ "name": "nav",
123
+ "type": "React.ReactNode",
124
+ "description": "Content of the navigation area"
125
+ },
126
+ {
127
+ "name": "profile",
128
+ "type": "React.ReactNode",
129
+ "description": "Content of the profile area"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "name": "CompassContent",
135
+ "description": "",
136
+ "props": [
137
+ {
138
+ "name": "children",
139
+ "type": "React.ReactNode",
140
+ "description": "Content of the main Compass area. Typically one or more `Panel` components.",
141
+ "required": true
142
+ },
143
+ {
144
+ "name": "className",
145
+ "type": "string",
146
+ "description": "Additional classes added to the CompassContent"
147
+ },
148
+ {
149
+ "name": "drawerContent",
150
+ "type": "React.ReactNode",
151
+ "description": "Content rendered in an optional drawer wrapping the CompassContent"
152
+ },
153
+ {
154
+ "name": "drawerProps",
155
+ "type": "DrawerProps",
156
+ "description": "Additional props passed to the drawer"
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "name": "CompassHero",
162
+ "description": "A wrapper component to pass a PatternFly Hero component into.",
163
+ "props": [
164
+ {
165
+ "name": "children",
166
+ "type": "React.ReactNode",
167
+ "description": "Content of the hero"
168
+ },
169
+ {
170
+ "name": "className",
171
+ "type": "string",
172
+ "description": "Additional classes added to the hero"
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "name": "CompassMainHeader",
178
+ "description": "The wrapper component for header content in the main Compass area. When building out a custom implementation,\nyou should ensure any content within the main header is rendered inside a Panel, PanelMain, PanelMainBody stack and main header content wrappers.",
179
+ "props": [
180
+ {
181
+ "name": "children",
182
+ "type": "React.ReactNode",
183
+ "description": "Custom main header content. To opt into a default styling, use the title and toolbar props instead."
184
+ },
185
+ {
186
+ "name": "className",
187
+ "type": "string",
188
+ "description": "Additional classes added to the main header"
189
+ },
190
+ {
191
+ "name": "panelProps",
192
+ "type": "Omit<PanelProps, 'children'>",
193
+ "description": "Additional props passed to the Panel that wraps the main header content when using the title or toolbar props. When using the\nchildren prop, you should pass your own Panel."
194
+ },
195
+ {
196
+ "name": "title",
197
+ "type": "React.ReactNode",
198
+ "description": "Styled title. If title or toolbar is provided, the children will be ignored."
199
+ },
200
+ {
201
+ "name": "toolbar",
202
+ "type": "React.ReactNode",
203
+ "description": "Styled toolbar. If title or toolbar is provided, the children will be ignored."
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "name": "CompassMessageBar",
209
+ "description": "",
210
+ "props": [
211
+ {
212
+ "name": "children",
213
+ "type": "React.ReactNode",
214
+ "description": "Content of the message bar. Typically a @patternfly/chatbot MessageBar component."
215
+ },
216
+ {
217
+ "name": "className",
218
+ "type": "string",
219
+ "description": "Additional classes added to the message bar"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "name": "CompassMainFooter",
225
+ "description": "",
226
+ "props": [
227
+ {
228
+ "name": "isExpanded",
229
+ "type": "No type info",
230
+ "defaultValue": "true"
231
+ }
232
+ ]
233
+ }
234
+ ],
235
+ "cssPrefix": [
236
+ "pf-v6-c-compass"
237
+ ],
238
+ "examples": [
239
+ "Basic",
240
+ "With alternate footer",
241
+ "With docked nav"
242
+ ]
243
+ };
244
+ pageData.liveContext = {
245
+ useRef,
246
+ useState,
247
+ useEffect
248
+ };
249
+ pageData.relativeImports = "import 'react-core/src/components/Compass/examples/./compass.css';"
250
+ pageData.examples = {
251
+ 'Basic': props =>
252
+ <Example {...pageData} {...props} {...{"code":"import {\n Compass,\n CompassHeader,\n CompassHero,\n CompassContent,\n CompassMainHeader,\n Panel,\n PanelMain,\n PanelMainBody,\n CompassMainHeaderContent\n} from '@patternfly/react-core';\nimport './compass.css';\n\nexport const CompassBasic: React.FunctionComponent = () => {\n const headerContent = <CompassHeader logo={<div>Logo</div>} nav={<div>Nav</div>} profile={<div>Profile</div>} />;\n const sidebarStartContent = <div>Sidebar start</div>;\n // TODO: simplify mainContent to only a div string\n const mainContent = (\n <>\n <CompassHero>\n <div>Hero</div>\n </CompassHero>\n <CompassContent>\n <CompassMainHeader>\n <Panel>\n <PanelMain>\n <PanelMainBody>\n <CompassMainHeaderContent>\n <div>Content title</div>\n </CompassMainHeaderContent>\n </PanelMainBody>\n </PanelMain>\n </Panel>\n </CompassMainHeader>\n <div>Content</div>\n </CompassContent>\n </>\n );\n const sidebarEndContent = <div>Sidebar end</div>;\n const footerContent = <div>Footer</div>;\n\n return (\n <Compass\n header={headerContent}\n sidebarStart={sidebarStartContent}\n main={mainContent}\n sidebarEnd={sidebarEndContent}\n footer={footerContent}\n style={{ height: '600px' }}\n />\n );\n};\n","title":"Basic","lang":"ts","isBeta":true,"className":""}}>
253
+
254
+ <p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
255
+ {`In a basic Compass layout, content can be passed to the following props to populate different areas of the page:`}
256
+ </p>
257
+
258
+ <ul {...{"className":"pf-v6-c-content--ul pf-m-editorial ws-ul "}}>
259
+
260
+
261
+
262
+ <li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
263
+
264
+ <code {...{"className":"ws-code "}}>
265
+ {`header`}
266
+ </code>
267
+ {`: Content rendered at the top of the page, typically including a `}
268
+
269
+ <code {...{"className":"ws-code "}}>
270
+ {`<CompassHeader>`}
271
+ </code>
272
+ {` component that divides the header into 3 areas, with a logo or brand, middle navigation, and profile.`}
273
+ </li>
274
+
275
+
276
+
277
+ <li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
278
+
279
+ <code {...{"className":"ws-code "}}>
280
+ {`sidebarStart`}
281
+ </code>
282
+ {`: Content rendered at the horizontal start of the page (by default, the left side).`}
283
+ </li>
284
+
285
+
286
+
287
+ <li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
288
+
289
+ <code {...{"className":"ws-code "}}>
290
+ {`main`}
291
+ </code>
292
+ {`: Content rendered in the center of the page, typically including a `}
293
+
294
+ <code {...{"className":"ws-code "}}>
295
+ {`<CompassMainHeader>`}
296
+ </code>
297
+ {` or `}
298
+
299
+ <code {...{"className":"ws-code "}}>
300
+ {`<CompassHero>`}
301
+ </code>
302
+ {`, along with a `}
303
+
304
+ <code {...{"className":"ws-code "}}>
305
+ {`<CompassContent>`}
306
+ </code>
307
+ {` filled with 1 or more `}
308
+
309
+ <code {...{"className":"ws-code "}}>
310
+ {`<Panel>`}
311
+ </code>
312
+ {` components.`}
313
+ </li>
314
+
315
+
316
+
317
+ <li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
318
+
319
+ <code {...{"className":"ws-code "}}>
320
+ {`sidebarEnd`}
321
+ </code>
322
+ {`: Content rendered at the horizontal end of the page (by default, the right side).`}
323
+ </li>
324
+
325
+
326
+
327
+ <li {...{"className":"pf-v6-c-content--li pf-m-editorial ws-li "}}>
328
+
329
+ <code {...{"className":"ws-code "}}>
330
+ {`footer`}
331
+ </code>
332
+ {`: Content rendered at the bottom of the page.`}
333
+ </li>
334
+
335
+
336
+ </ul>
337
+
338
+ <p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
339
+ {`The background image of `}
340
+
341
+ <code {...{"className":"ws-code "}}>
342
+ {`<Compass>`}
343
+ </code>
344
+ {` is set at a global level alongside the theme. You can customize the background image of the `}
345
+
346
+ <code {...{"className":"ws-code "}}>
347
+ {`<Hero>`}
348
+ </code>
349
+ {` inside `}
350
+
351
+ <code {...{"className":"ws-code "}}>
352
+ {`<CompassHero>`}
353
+ </code>
354
+ {` by using its `}
355
+
356
+ <code {...{"className":"ws-code "}}>
357
+ {`backgroundSrcLight`}
358
+ </code>
359
+ {` and `}
360
+
361
+ <code {...{"className":"ws-code "}}>
362
+ {`backgroundSrcDark`}
363
+ </code>
364
+ {` props, or you may set a gradient using the `}
365
+
366
+ <code {...{"className":"ws-code "}}>
367
+ {`gradientLight`}
368
+ </code>
369
+ {` and `}
370
+
371
+ <code {...{"className":"ws-code "}}>
372
+ {`gradientDark`}
373
+ </code>
374
+ {` props.`}
375
+ </p>
376
+ </Example>,
377
+ 'With alternate footer': props =>
378
+ <Example {...pageData} {...props} {...{"code":"import {\n Compass,\n CompassHeader,\n CompassHero,\n CompassContent,\n CompassMainHeader,\n CompassMainFooter\n} from '@patternfly/react-core';\nimport './compass.css';\n\nexport const CompassMainFooterDemo: React.FunctionComponent = () => {\n const headerContent = <CompassHeader logo={<div>Logo</div>} nav={<div>Nav</div>} profile={<div>Profile</div>} />;\n const sidebarStartContent = <div>Sidebar start</div>;\n // TODO: simplify mainContent to only a div string\n const mainContent = (\n <>\n <CompassHero>\n <div>Hero</div>\n </CompassHero>\n <CompassContent>\n <CompassMainHeader>\n <div>Content title</div>\n </CompassMainHeader>\n <div>Content</div>\n </CompassContent>\n <CompassMainFooter>\n <div>Footer</div>\n </CompassMainFooter>\n </>\n );\n const sidebarEndContent = <div>Sidebar end</div>;\n\n return (\n <Compass\n header={headerContent}\n sidebarStart={sidebarStartContent}\n main={mainContent}\n sidebarEnd={sidebarEndContent}\n isFooterExpanded={false}\n style={{ height: '600px' }}\n />\n );\n};\n","title":"With alternate footer","lang":"ts","className":""}}>
379
+
380
+ <p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
381
+ {`When `}
382
+
383
+ <code {...{"className":"ws-code "}}>
384
+ {`footer`}
385
+ </code>
386
+ {` is used, its content will fill the width of the screen. By default, when content inside the footer grows, the height and placement of the start and end sidebars will adjust to allow for the change. To modify this behavior and render footer content without interfering with the sidebars, instead place a `}
387
+
388
+ <code {...{"className":"ws-code "}}>
389
+ {`<CompassMainFooter>`}
390
+ </code>
391
+ {` inside the `}
392
+
393
+ <code {...{"className":"ws-code "}}>
394
+ {`main`}
395
+ </code>
396
+ {` section. This will render content at the bottom of the page between the 2 sidebars, rather than across the entire bottom of the page.`}
397
+ </p>
398
+ </Example>,
399
+ 'With docked nav': props =>
400
+ <Example {...pageData} {...props} {...{"code":"import {\n Compass,\n CompassContent,\n CompassMainHeader,\n Panel,\n PanelMain,\n PanelMainBody,\n CompassMainHeaderContent\n} from '@patternfly/react-core';\nimport './compass.css';\n\nexport const CompassBasic: React.FunctionComponent = () => {\n const dockContent = <div>Content</div>;\n const mainContent = (\n <CompassContent>\n <CompassMainHeader>\n <Panel>\n <PanelMain>\n <PanelMainBody>\n <CompassMainHeaderContent>\n <div>Content title</div>\n </CompassMainHeaderContent>\n </PanelMainBody>\n </PanelMain>\n </Panel>\n </CompassMainHeader>\n <div>Content</div>\n </CompassContent>\n );\n return <Compass dock={dockContent} main={mainContent} />;\n};\n","title":"With docked nav","lang":"ts","className":""}}>
401
+
402
+ </Example>
403
+ };
404
+
405
+ const Component = () => (
406
+ <React.Fragment>
407
+ <AutoLinkHeader {...{"id":"examples","headingLevel":"h2","className":"ws-title ws-h2"}}>
408
+ {`Examples`}
409
+ </AutoLinkHeader>
410
+ {React.createElement(pageData.examples["Basic"])}
411
+ {React.createElement(pageData.examples["With alternate footer"])}
412
+ {React.createElement(pageData.examples["With docked nav"])}
413
+ <AutoLinkHeader {...{"id":"composable-structure","headingLevel":"h2","className":"ws-title ws-h2"}}>
414
+ {`Composable structure`}
415
+ </AutoLinkHeader>
416
+ <p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
417
+ {`When building a more custom implementation with Compass components, there are some intended or expected structures that must remain present.`}
418
+ </p>
419
+ <AutoLinkHeader {...{"id":"compassmainheader-structure","headingLevel":"h3","className":"ws-title ws-h3"}}>
420
+ {`CompassMainHeader structure`}
421
+ </AutoLinkHeader>
422
+ <p {...{"className":"pf-v6-c-content--p pf-m-editorial ws-p "}}>
423
+ {`When using the `}
424
+ <code {...{"className":"ws-code "}}>
425
+ {`children`}
426
+ </code>
427
+ {` property in the `}
428
+ <code {...{"className":"ws-code "}}>
429
+ {`<CompassMainHeader>`}
430
+ </code>
431
+ {` component, there are specific structural patterns that you should follow, as shown this general code structure.`}
432
+ </p>
433
+ <Example {...{"code":"<CompassMainHeader>\n <Panel>\n <PanelMain>\n <PanelMainBody>\n <CompassMainHeaderContent>\n {Your custom content goes here, which can include the <CompassMainHeaderTitle> and/or <CompassMainHeaderToolbar> sub-components}\n </CompassMainHeaderContent>\n </PanelMainBody>\n </PanelMain>\n </Panel>\n</CompassMainHeader>","lang":"noLive","className":""}}>
434
+ </Example>
435
+ </React.Fragment>
436
+ );
437
+ Component.displayName = 'ComponentsCompassReactDocs';
438
+ Component.pageData = pageData;
439
+
440
+ export default Component;