Debian Codegraph @

node/@patternfly/patternfly/docs/components/Page/examples/Page.md

raw
1 ---
2 id: Page
3 section: components
4 cssPrefix: pf-v6-c-page
5 wrapperTag: div
6 ---import './Page.css'
7
8 ## Examples
9
10 ### Vertical nav
11
12 ```html
13 <div class="pf-v6-c-page">
14 <header class="pf-v6-c-masthead">
15 <div class="pf-v6-c-masthead__main">
16 <span class="pf-v6-c-masthead__toggle">
17 <button
18 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
19 type="button"
20 aria-label="Global navigation"
21 >
22 <span class="pf-v6-c-button__icon">
23 <svg
24 viewBox="0 0 10 10"
25 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
26 width="1em"
27 height="1em"
28 >
29 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
30 <path
31 class="pf-v6-c-button--hamburger-icon--middle"
32 d="M1,5 L9,5"
33 />
34 <path
35 class="pf-v6-c-button--hamburger-icon--arrow"
36 d="M1,5 L1,5 L1,5"
37 />
38 <path
39 class="pf-v6-c-button--hamburger-icon--bottom"
40 d="M9,9 L1,9"
41 />
42 </svg>
43 </span>
44 </button>
45 </span>
46 <div class="pf-v6-c-masthead__brand">
47 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
48 </div>
49 </div>
50 <div class="pf-v6-c-masthead__content">
51 <span>Content</span>
52 </div>
53 </header>
54 <div class="pf-v6-c-page__sidebar">
55 <div class="pf-v6-c-page__sidebar-main">
56 <div class="pf-v6-c-page__sidebar-body">Navigation</div>
57 </div>
58 </div>
59 <div class="pf-v6-c-page__main-container" tabindex="-1">
60 <main class="pf-v6-c-page__main" tabindex="-1">
61 <section
62 class="pf-v6-c-page__main-section"
63 aria-label="Default main section example 1"
64 >
65 <div class="pf-v6-c-page__main-body">
66 This is a default
67 <code>.pf-v6-c-page__main-section</code>.
68 </div>
69 </section>
70 <section
71 class="pf-v6-c-page__main-section pf-m-secondary"
72 aria-label="Secondary main section example 1"
73 >
74 <div class="pf-v6-c-page__main-body">
75 This
76 <code>.pf-v6-c-page__main-section</code> uses
77 <code>.pf-m-secondary</code>.
78 </div>
79 </section>
80 <section
81 class="pf-v6-c-page__main-section"
82 aria-label="Default main section example 2"
83 >
84 <div class="pf-v6-c-page__main-body">
85 This is a default
86 <code>.pf-v6-c-page__main-section</code>.
87 </div>
88 </section>
89 <section
90 class="pf-v6-c-page__main-section pf-m-secondary"
91 aria-label="Multiple main body section example"
92 >
93 <div
94 class="pf-v6-c-page__main-body"
95 >This is a page__main-body, one of three within one page__main-section.</div>
96 <div
97 class="pf-v6-c-page__main-body"
98 >This is a page__main-body, one of three within one page__main-section.</div>
99 <div
100 class="pf-v6-c-page__main-body"
101 >This is a page__main-body, one of three within one page__main-section.</div>
102 </section>
103 </main>
104 </div>
105 </div>
106
107 ```
108
109 ### Horizontal nav
110
111 ```html
112 <div class="pf-v6-c-page">
113 <header class="pf-v6-c-masthead">
114 <div class="pf-v6-c-masthead__main">
115 <span class="pf-v6-c-masthead__toggle">
116 <button
117 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
118 type="button"
119 aria-label="Global navigation"
120 >
121 <span class="pf-v6-c-button__icon">
122 <svg
123 viewBox="0 0 10 10"
124 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
125 width="1em"
126 height="1em"
127 >
128 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
129 <path
130 class="pf-v6-c-button--hamburger-icon--middle"
131 d="M1,5 L9,5"
132 />
133 <path
134 class="pf-v6-c-button--hamburger-icon--arrow"
135 d="M1,5 L1,5 L1,5"
136 />
137 <path
138 class="pf-v6-c-button--hamburger-icon--bottom"
139 d="M9,9 L1,9"
140 />
141 </svg>
142 </span>
143 </button>
144 </span>
145 <div class="pf-v6-c-masthead__brand">
146 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
147 </div>
148 </div>
149 <div class="pf-v6-c-masthead__content">
150 <span>Content</span>
151 </div>
152 </header>
153 <div class="pf-v6-c-page__main-container" tabindex="-1">
154 <main class="pf-v6-c-page__main" tabindex="-1">
155 <section
156 class="pf-v6-c-page__main-section"
157 aria-label="Horizontal nav default main section example 1"
158 >
159 <div class="pf-v6-c-page__main-body">
160 This is a default
161 <code>.pf-v6-c-page__main-section</code>.
162 </div>
163 </section>
164 <section
165 class="pf-v6-c-page__main-section pf-m-secondary"
166 aria-label="Horizontal nav secondary main section example"
167 >
168 <div class="pf-v6-c-page__main-body">
169 This
170 <code>.pf-v6-c-page__main-section</code> uses
171 <code>.pf-m-secondary</code>.
172 </div>
173 </section>
174 <section
175 class="pf-v6-c-page__main-section"
176 aria-label="Horizontal nav default main section example 2"
177 >
178 <div class="pf-v6-c-page__main-body">
179 This is a default
180 <code>.pf-v6-c-page__main-section</code>.
181 </div>
182 </section>
183 </main>
184 </div>
185 </div>
186
187 ```
188
189 ### Multiple sidebar body elements, padding, and fill
190
191 ```html
192 <div class="pf-v6-c-page">
193 <header class="pf-v6-c-masthead">
194 <div class="pf-v6-c-masthead__main">
195 <span class="pf-v6-c-masthead__toggle">
196 <button
197 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
198 type="button"
199 aria-label="Global navigation"
200 >
201 <span class="pf-v6-c-button__icon">
202 <svg
203 viewBox="0 0 10 10"
204 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
205 width="1em"
206 height="1em"
207 >
208 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
209 <path
210 class="pf-v6-c-button--hamburger-icon--middle"
211 d="M1,5 L9,5"
212 />
213 <path
214 class="pf-v6-c-button--hamburger-icon--arrow"
215 d="M1,5 L1,5 L1,5"
216 />
217 <path
218 class="pf-v6-c-button--hamburger-icon--bottom"
219 d="M9,9 L1,9"
220 />
221 </svg>
222 </span>
223 </button>
224 </span>
225 <div class="pf-v6-c-masthead__brand">
226 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
227 </div>
228 </div>
229 <div class="pf-v6-c-masthead__content">
230 <span>Content</span>
231 </div>
232 </header>
233 <div class="pf-v6-c-page__sidebar">
234 <div class="pf-v6-c-page__sidebar-main">
235 <div class="pf-v6-c-page__sidebar-body">Navigation</div>
236 <div class="pf-v6-c-page__sidebar-body pf-m-fill">inset content</div>
237 <div
238 class="pf-v6-c-page__sidebar-body pf-m-fill pf-m-inset-none"
239 >content that is not inset</div>
240 <div class="pf-v6-c-page__sidebar-body pf-m-no-fill">footer content</div>
241 </div>
242 </div>
243 <div class="pf-v6-c-page__main-container" tabindex="-1">
244 <main class="pf-v6-c-page__main" tabindex="-1">
245 <section
246 class="pf-v6-c-page__main-section"
247 aria-label="Sidebar body layout section"
248 >
249 <div class="pf-v6-c-page__main-body"></div>
250 </section>
251 </main>
252 </div>
253 </div>
254
255 ```
256
257 ### With or without fill
258
259 ```html
260 <div class="pf-v6-c-page">
261 <header class="pf-v6-c-masthead">
262 <div class="pf-v6-c-masthead__main">
263 <span class="pf-v6-c-masthead__toggle">
264 <button
265 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
266 type="button"
267 aria-label="Global navigation"
268 >
269 <span class="pf-v6-c-button__icon">
270 <svg
271 viewBox="0 0 10 10"
272 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
273 width="1em"
274 height="1em"
275 >
276 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
277 <path
278 class="pf-v6-c-button--hamburger-icon--middle"
279 d="M1,5 L9,5"
280 />
281 <path
282 class="pf-v6-c-button--hamburger-icon--arrow"
283 d="M1,5 L1,5 L1,5"
284 />
285 <path
286 class="pf-v6-c-button--hamburger-icon--bottom"
287 d="M9,9 L1,9"
288 />
289 </svg>
290 </span>
291 </button>
292 </span>
293 <div class="pf-v6-c-masthead__brand">
294 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
295 </div>
296 </div>
297 <div class="pf-v6-c-masthead__content">
298 <span>Content</span>
299 </div>
300 </header>
301 <div class="pf-v6-c-page__main-container pf-m-fill" tabindex="-1">
302 <main class="pf-v6-c-page__main" tabindex="-1">
303 <section
304 class="pf-v6-c-page__main-section"
305 aria-label="Regular page section example"
306 >
307 <div class="pf-v6-c-page__main-body">A regular page section.</div>
308 </section>
309 <section
310 class="pf-v6-c-page__main-section pf-m-fill"
311 aria-label="Fill page section example"
312 >
313 <div class="pf-v6-c-page__main-body">
314 This section uses
315 <code>.pf-m-fill</code> to fill the available space. The
316 <code>.pf-v6-c-page__main-container</code> must also have
317 <code>.pf-m-fill</code> in order for the section to have space to stretch to full height.
318 </div>
319 </section>
320 <section
321 class="pf-v6-c-page__main-section pf-m-no-fill"
322 aria-label="No fill page section example"
323 >
324 <div class="pf-v6-c-page__main-body">
325 This section uses
326 <code>.pf-m-no-fill</code> and will not fill the available space.
327 </div>
328 </section>
329 </main>
330 </div>
331 </div>
332
333 ```
334
335 ### Main section padding
336
337 ```html
338 <div class="pf-v6-c-page">
339 <header class="pf-v6-c-masthead">
340 <div class="pf-v6-c-masthead__main">
341 <span class="pf-v6-c-masthead__toggle">
342 <button
343 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
344 type="button"
345 aria-label="Global navigation"
346 >
347 <span class="pf-v6-c-button__icon">
348 <svg
349 viewBox="0 0 10 10"
350 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
351 width="1em"
352 height="1em"
353 >
354 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
355 <path
356 class="pf-v6-c-button--hamburger-icon--middle"
357 d="M1,5 L9,5"
358 />
359 <path
360 class="pf-v6-c-button--hamburger-icon--arrow"
361 d="M1,5 L1,5 L1,5"
362 />
363 <path
364 class="pf-v6-c-button--hamburger-icon--bottom"
365 d="M9,9 L1,9"
366 />
367 </svg>
368 </span>
369 </button>
370 </span>
371 <div class="pf-v6-c-masthead__brand">
372 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
373 </div>
374 </div>
375 <div class="pf-v6-c-masthead__content">
376 <span>Content</span>
377 </div>
378 </header>
379 <div class="pf-v6-c-page__sidebar">
380 <div class="pf-v6-c-page__sidebar-main">
381 <div class="pf-v6-c-page__sidebar-body">Navigation</div>
382 </div>
383 </div>
384 <div class="pf-v6-c-page__main-container" tabindex="-1">
385 <main class="pf-v6-c-page__main" tabindex="-1">
386 <section
387 class="pf-v6-c-page__main-section"
388 aria-label="Default padding main section example"
389 >
390 <div class="pf-v6-c-page__main-body">
391 This
392 <code>.pf-v6-c-page__main-section</code> has default padding.
393 </div>
394 </section>
395 <section
396 class="pf-v6-c-page__main-section pf-m-no-padding"
397 aria-label="No padding main section example"
398 >
399 <div class="pf-v6-c-page__main-body">
400 This
401 <code>.pf-v6-c-page__main-section</code> uses
402 <code>.pf-m-no-padding</code> to remove all padding.
403 </div>
404 </section>
405 <section
406 class="pf-v6-c-page__main-section pf-m-no-padding pf-m-padding-on-md"
407 aria-label="Responsive padding main section example"
408 >
409 <div class="pf-v6-c-page__main-body">
410 This
411 <code>.pf-v6-c-page__main-section</code> uses
412 <code>.pf-m-no-padding .pf-m-padding-on-md</code> to remove padding up to the
413 <code>md</code> breakpoint.
414 </div>
415 </section>
416 </main>
417 </div>
418 </div>
419
420 ```
421
422 ### Main section variations
423
424 ```html
425 <div class="pf-v6-c-page">
426 <header class="pf-v6-c-masthead">
427 <div class="pf-v6-c-masthead__main">
428 <span class="pf-v6-c-masthead__toggle">
429 <button
430 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
431 type="button"
432 aria-label="Global navigation"
433 >
434 <span class="pf-v6-c-button__icon">
435 <svg
436 viewBox="0 0 10 10"
437 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
438 width="1em"
439 height="1em"
440 >
441 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
442 <path
443 class="pf-v6-c-button--hamburger-icon--middle"
444 d="M1,5 L9,5"
445 />
446 <path
447 class="pf-v6-c-button--hamburger-icon--arrow"
448 d="M1,5 L1,5 L1,5"
449 />
450 <path
451 class="pf-v6-c-button--hamburger-icon--bottom"
452 d="M9,9 L1,9"
453 />
454 </svg>
455 </span>
456 </button>
457 </span>
458 <div class="pf-v6-c-masthead__brand">
459 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
460 </div>
461 </div>
462 <div class="pf-v6-c-masthead__content">
463 <span>Content</span>
464 </div>
465 </header>
466 <div class="pf-v6-c-page__sidebar">
467 <div class="pf-v6-c-page__sidebar-main">
468 <div class="pf-v6-c-page__sidebar-body">Navigation</div>
469 </div>
470 </div>
471 <div class="pf-v6-c-page__main-container" tabindex="-1">
472 <main class="pf-v6-c-page__main" tabindex="-1">
473 <section class="pf-v6-c-page__main-subnav">
474 <code>.pf-v6-c-page__main-subnav</code> for horizontal subnav navigation
475 </section>
476 <section class="pf-v6-c-page__main-tabs">
477 <code>.pf-v6-c-page__main-tabs</code> for tabs
478 </section>
479 <div class="pf-v6-c-page__main-group">
480 <code>.pf-v6-c-page__main-group</code> for a group of page sections
481 </div>
482 <section class="pf-v6-c-page__main-breadcrumb">
483 <code>.pf-v6-c-page__main-breadcrumb</code> for breadcrumbs
484 </section>
485 <section
486 class="pf-v6-c-page__main-section"
487 aria-label="Main section variations example"
488 >
489 <div class="pf-v6-c-page__main-body">
490 <code>.pf-v6-c-page__main-section</code> for main sections
491 </div>
492 </section>
493 <section class="pf-v6-c-page__main-wizard">
494 <code>.pf-v6-c-page__main-wizard</code> for wizards
495 </section>
496 </main>
497 </div>
498 </div>
499
500 ```
501
502 ### Centered section
503
504 ```html
505 <div class="pf-v6-c-page">
506 <header class="pf-v6-c-masthead">
507 <div class="pf-v6-c-masthead__main">
508 <span class="pf-v6-c-masthead__toggle">
509 <button
510 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
511 type="button"
512 aria-label="Global navigation"
513 >
514 <span class="pf-v6-c-button__icon">
515 <svg
516 viewBox="0 0 10 10"
517 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
518 width="1em"
519 height="1em"
520 >
521 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
522 <path
523 class="pf-v6-c-button--hamburger-icon--middle"
524 d="M1,5 L9,5"
525 />
526 <path
527 class="pf-v6-c-button--hamburger-icon--arrow"
528 d="M1,5 L1,5 L1,5"
529 />
530 <path
531 class="pf-v6-c-button--hamburger-icon--bottom"
532 d="M9,9 L1,9"
533 />
534 </svg>
535 </span>
536 </button>
537 </span>
538 <div class="pf-v6-c-masthead__brand">
539 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
540 </div>
541 </div>
542 <div class="pf-v6-c-masthead__content">
543 <span>Content</span>
544 </div>
545 </header>
546 <div class="pf-v6-c-page__main-container" tabindex="-1">
547 <main class="pf-v6-c-page__main" tabindex="-1">
548 <section
549 class="pf-v6-c-page__main-section pf-m-limit-width pf-m-align-center"
550 aria-label="Centered section example"
551 >
552 <div class="pf-v6-c-page__main-body">
553 <div class="pf-v6-c-card">
554 <div class="pf-v6-c-card__body">
555 When a width limited page section is wider than the value of
556 <code>--pf-v6-c-page--section--m-limit-width--MaxWidth</code>, the section will be centered in the main section.
557 <br />
558 <br />The content in this example is placed in a card to better illustrate how the section behaves when it is centered. A card is not required to center a page section.
559 </div>
560 </div>
561 </div>
562 </section>
563 </main>
564 </div>
565 </div>
566
567 ```
568
569 ### With dock
570
571 ```html isBeta
572 <div class="pf-v6-c-page pf-m-docked">
573 <div class="pf-v6-c-page__dock">
574 <div class="pf-v6-c-page__dock-main">
575 <header class="pf-v6-c-masthead pf-m-docked">
576 <div class="pf-v6-c-masthead__main">
577 <div class="pf-v6-c-masthead__brand">logo</div>
578 </div>
579 <div class="pf-v6-c-masthead__content">
580 <button
581 class="pf-v6-c-button pf-m-plain"
582 type="button"
583 aria-label="Chat"
584 >
585 <span class="pf-v6-c-button__icon">
586 <svg
587 class="pf-v6-svg"
588 fill="currentColor"
589 viewBox="0 0 512 512"
590 aria-hidden="true"
591 role="img"
592 width="1em"
593 height="1em"
594 >
595 <path
596 d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"
597 />
598 </svg>
599 </span>
600 </button>
601 </div>
602 </header>
603 </div>
604 </div>
605 <div class="pf-v6-c-page__main-container" tabindex="-1">
606 <main class="pf-v6-c-page__main" tabindex="-1">
607 <section
608 class="pf-v6-c-page__main-section"
609 aria-label="Dock main section example"
610 >
611 <div class="pf-v6-c-page__main-body">
612 This is a default
613 <code>.pf-v6-c-page__main-section</code>.
614 </div>
615 </section>
616 </main>
617 </div>
618 </div>
619
620 ```
621
622 ### Sticky section dynamic
623
624 ```html
625 <div class="pf-v6-c-page">
626 <header class="pf-v6-c-masthead">
627 <div class="pf-v6-c-masthead__main">
628 <span class="pf-v6-c-masthead__toggle">
629 <button
630 class="pf-v6-c-button pf-m-hamburger pf-m-plain"
631 type="button"
632 aria-label="Global navigation"
633 >
634 <span class="pf-v6-c-button__icon">
635 <svg
636 viewBox="0 0 10 10"
637 class="pf-v6-c-button--hamburger-icon pf-v6-svg"
638 width="1em"
639 height="1em"
640 >
641 <path class="pf-v6-c-button--hamburger-icon--top" d="M1,1 L9,1" />
642 <path
643 class="pf-v6-c-button--hamburger-icon--middle"
644 d="M1,5 L9,5"
645 />
646 <path
647 class="pf-v6-c-button--hamburger-icon--arrow"
648 d="M1,5 L1,5 L1,5"
649 />
650 <path
651 class="pf-v6-c-button--hamburger-icon--bottom"
652 d="M9,9 L1,9"
653 />
654 </svg>
655 </span>
656 </button>
657 </span>
658 <div class="pf-v6-c-masthead__brand">
659 <a class="pf-v6-c-masthead__logo" href="#">Logo</a>
660 </div>
661 </div>
662 <div class="pf-v6-c-masthead__content">
663 <span>Content</span>
664 </div>
665 </header>
666 <div class="pf-v6-c-page__main-container" tabindex="-1">
667 <main class="pf-v6-c-page__main" tabindex="-1">
668 <div
669 class="pf-v6-c-page__main-group pf-m-sticky-top-base pf-m-sticky-top-stuck"
670 >
671 <section class="pf-v6-c-page__main-breadcrumb">Breadcrumb</section>
672 <section
673 class="pf-v6-c-page__main-section"
674 aria-label="Sticky dynamic section title"
675 >
676 <div class="pf-v6-c-page__main-body">
677 This
678 <code>.pf-v6-c-page__main-group</code> uses
679 <code>.pf-m-sticky-top-base</code> and
680 <code>.pf-m-sticky-top-stuck</code> for dynamic sticky positioning with a fade-in background and shadow.
681 </div>
682 </section>
683 </div>
684 <section
685 class="pf-v6-c-page__main-section"
686 aria-label="Sticky dynamic content section"
687 >
688 <div class="pf-v6-c-page__main-body">Content below the sticky section.</div>
689 </section>
690 </main>
691 </div>
692 </div>
693
694 ```
695
696 ## Documentation
697
698 ### Overview
699
700 This component provides the basic chrome for a page, including sidebar and main areas.
701
702 ### Accessibility
703
704 | Attribute | Applied to | Outcome |
705 | -- | -- | -- |
706 | `role="main"` | `.pf-v6-c-page__main` | Identifies the element that serves as the main region. |
707 | `tabindex="-1"` | `.pf-v6-c-page__main` | Allows the main region to receive programmatic focus. **Required** |
708 | `id="[id]"` | `.pf-v6-c-page__main` | Provides a hook for sending focus to new content. **Required** |
709 | `tabindex="0"` | `.pf-v6-c-page__main-section.pf-m-overflow-scroll` | If a page section has overflow content that triggers a scrollbar, to ensure that the content is keyboard accessible, the page section must include either a focusable element within the scrollable region or the page section itself must be focusable by adding `tabindex="0"`. |
710
711 ### Usage
712
713 | Class | Applied to | Outcome |
714 | -- | -- | -- |
715 | `.pf-v6-c-page` | `<div>` | Declares the page component. |
716 | `.pf-v6-c-page__sidebar` | `<aside>` | Declares the page sidebar. |
717 | `.pf-v6-c-page__sidebar-body` | `<div>` | Creates a wrapper within the sidebar to hold content. **Note: The last/only `.pf-v6-c-page__sidebar-body` element will grow to fill the available vertical space. You can change this behavior using `.pf-m-fill` and `.pf-m-no-fill`, which are documented below.** |
718 | `.pf-v6-c-page__main` | `<main>` | Declares the main page area. |
719 | `.pf-v6-c-page__main-subnav` | `<section>` | Creates a container to nest the horizontal subnav navigation component in the main page area. |
720 | `.pf-v6-c-page__main-breadcrumb` | `<section>` | Creates a container to nest the breadcrumb component in the main page area. |
721 | `.pf-v6-c-page__main-section` | `<section>` | Creates a section container in the main page area. **Note: This section will not fill the vertical space. You can change this behavior using `.pf-m-fill` and `.pf-m-no-fill`, which are documented below.** |
722 | `.pf-v6-c-page__main-tabs` | `<section>` | Creates a container to nest the tabs component in the main page area. |
723 | `.pf-v6-c-page__main-wizard` | `<section>` | Creates a container to nest the wizard component in the main page area. |
724 | `.pf-v6-c-page__main-body` | `<div>` | Creates the body section for a page section. **Required** |
725 | `.pf-v6-c-page__main-group` | `<div>` | Creates the group of `.pf-v6-c-page__main-*` sections. Can be used in combination with `.pf-m-sticky-[top/bottom]` to make multiple sections sticky. |
726 | `.pf-v6-c-page__drawer` | `<div>` | Creates a container for the drawer component when placing the main page element in the drawer body. |
727 | `.pf-m-docked` | `.pf-v6-c-page` | Modifies the page grid to have a dock. |
728 | `.pf-m-no-sidebar` | `.pf-v6-c-page` | Modifies the page grid for layouts without a sidebar. |
729 | `.pf-m-expanded` | `.pf-v6-c-page__sidebar` | Modifies the sidebar for the expanded state. |
730 | `.pf-m-collapsed` | `.pf-v6-c-page__sidebar` | Modifies the sidebar for the collapsed state. |
731 | `.pf-m-page-insets` | `.pf-v6-c-page__sidebar-body` | Modifies a sidebar body padding/inset to visually match padding of page elements. |
732 | `.pf-m-context-selector` | `.pf-v6-c-page__sidebar-body` | Modifies a sidebar body to contain a context selector. |
733 | `.pf-m-inset-none` | `.pf-v6-c-page__sidebar-body` | Removes a sidebar body left/right inset. |
734 | `.pf-m-padding{-on-[breakpoint]}` | `.pf-v6-c-page__main-section` | Modifies the main page section to add padding back in at an optional [breakpoint](/foundations-and-styles/design-tokens/all-design-tokens). Should be used with pf-m-no-padding. |
735 | `.pf-m-no-padding{-on-[breakpoint]}` | `.pf-v6-c-page__main-section` | Removes padding from the main page section at an optional [breakpoint](/foundations-and-styles/design-tokens/all-design-tokens). |
736 | `.pf-m-fill` | `.pf-v6-c-page__main-container`, `.pf-v6-c-page__main-section`, `.pf-v6-c-page__main-group`, `.pf-v6-c-page__main-wizard`, `.pf-v6-c-page__sidebar-body` | Modifies the element to grow to fill the available space. Note that `.pf-v6-c-page__main-container` must also have `.pf-m-fill` applied in order for the section to have space to stretch to full height.|
737 | `.pf-m-no-fill` | `.pf-v6-c-page__main-section`, `.pf-v6-c-page__main-group`, `.pf-v6-c-page__main-wizard`, `.pf-v6-c-page__sidebar-body` | Modifies the element not to grow to fill the available vertical space. |
738 | `.pf-m-plain` | `.pf-v6-c-page__main-section`, `.pf-v6-c-page__main-group`, `.pf-v6-c-page__main-wizard`, `.pf-v6-c-page__main-breadcrumb`, `.pf-v6-c-page__main-subnav`, and `.pf-v6-c-page__main-tabs` | Applies plain styling to the section. |
739 | `.pf-m-no-plain-on-glass` | `.pf-v6-c-page__main-section`, `.pf-v6-c-page__main-group`, `.pf-v6-c-page__main-wizard`, `.pf-v6-c-page__main-breadcrumb`, `.pf-v6-c-page__main-subnav`, and `.pf-v6-c-page__main-tabs` | Prevents the section from automatically applying plain styling when glass theme is enabled. |
740 | `.pf-m-limit-width` | `.pf-v6-c-page__main-section` | Modifies a page section to limit the `max-width` of the content inside. |
741 | `.pf-m-align-center` | `.pf-v6-c-page__main-section.pf-m-limit-width` | Modifies a page section body to align center. |
742 | `.pf-m-sticky-top{-on-[breakpoint]-height}` | `.pf-v6-c-page__main-*` | Modifies a section/group to be sticky to the top of its container at an optional height breakpoint. |
743 | `.pf-m-sticky-bottom{-on-[breakpoint]-height}` | `.pf-v6-c-page__main-*` | Modifies a section/group to be sticky to the bottom of its container at an optional height breakpoint. |
744 | `.pf-m-sticky-top-base` | `.pf-v6-c-page__main-*` | Sets up dynamic sticky top positioning with no background or shadow. Used with `.pf-m-sticky-top-stuck`. |
745 | `.pf-m-sticky-top-stuck` | `.pf-v6-c-page__main-*` | Triggers the sticky top stuck state, fading in the background and shadow. Apply via JS when the section becomes stuck. |
746 | `.pf-m-sticky-bottom-base` | `.pf-v6-c-page__main-*` | Sets up dynamic sticky bottom positioning with no background or shadow. Used with `.pf-m-sticky-bottom-stuck`. |
747 | `.pf-m-sticky-bottom-stuck` | `.pf-v6-c-page__main-*` | Triggers the sticky bottom stuck state, fading in the background and shadow. Apply via JS when the section becomes stuck. |
748 | `.pf-m-shadow-bottom` | `.pf-v6-c-page__main-*` | Modifies a section/group to have a bottom shadow. |
749 | `.pf-m-shadow-top` | `.pf-v6-c-page__main-*` | Modifies a section/group to have a top shadow. |
750 | `.pf-m-overflow-scroll` | `.pf-v6-c-page__main-*` | Modifies a section/group to show a scrollbar if it has overflow content. |