---
id: 'Compass'
beta: true
section: components
cssPrefix: pf-v6-c-compass
---import './Compass.css';
## Examples
### Basic
In a basic Compass layout, the page structure is defined by the order of elements nested within `.pf-v6-c-compass__container` (inside `.pf-v6-c-compass`):
* **Header:** Content rendered at the top of the page (`.pf-v6-c-compass__header`), typically containing a logo (`.pf-v6-c-compass__logo`), middle navigation (`.pf-v6-c-compass__nav`), and profile (`.pf-v6-c-compass__profile`).
* **Start sidebar:** Content rendered at the horizontal start of the page (by default, the left side). In this example, a `.pf-v6-c-compass__sidebar` with the `.pf-m-start` modifier.
* **Main:** Content rendered in the center of the page. The `.pf-v6-c-compass__main` wrapper contains a [hero component](/components/hero), the main header (`.pf-v6-c-compass__main-header`), the content area (`.pf-v6-c-compass__content`), and the main footer (`.pf-v6-c-compass__main-footer`) with the message bar.
* **End sidebar:** Content rendered at the horizontal end of the page (by default, the right side). In this example, a `.pf-v6-c-compass__sidebar` with the `.pf-m-end` modifier.
* **Footer:** Content rendered at the bottom of the page (`.pf-v6-c-compass__footer`).
```html isBeta
sidebar (start)
sidebar (end)
footer
```
### Docked
```html isBeta
```
## Documentation
### Usage
| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-c-compass` | `` | Outermost wrapper for the Compass component. Handles background. **Required** |
| `.pf-v6-c-compass__container` | `
` | Grid wrapper for Compass regions. **Required** |
| `.pf-v6-c-compass__header` | `
` | Initiates the Compass header. **Required** |
| `.pf-v6-c-compass__logo` | `
` | Initiates the Compass logo header. |
| `.pf-v6-c-compass__dock` | `
` | Initiates the Compass dock. |
| `.pf-v6-c-compass__profile` | `
` | Initiates the Compass profile. |
| `.pf-v6-c-compass__dock-main` | `
` | Initiates the Compass dock main wrapper. |
| `.pf-v6-c-compass__sidebar` | `
` | Initiates a Compass sidebar. **Required** |
| `.pf-v6-c-compass__main` | `
` | Initiates the Compass main wrapper. **Required** |
| `.pf-v6-c-compass__main-header` | `
` | Initiates the Compass main header. |
| `.pf-v6-c-compass__main-header-content` | `
` | Initiates the Compass main header content. This should be passed into a glass panel component. |
| `.pf-v6-c-compass__main-header-title` | `
` | Initiates a title within the Compass main header content. |
| `.pf-v6-c-compass__main-header-toolbar` | `
` | Initiates a toolbar of actions within the Compass main header content. |
| `.pf-v6-c-compass__content` | `
` | Initiates the Compass content. **Required** |
| `.pf-v6-c-compass__main-footer` | `
` | Initiates the Compass main footer. **Required** |
| `.pf-v6-c-compass__nav` | `
` | Initiates a Compass container for site navigation. |
| `.pf-v6-c-compass__nav-content` | `
` | Initiates a Compass container for navigation content. |
| `.pf-v6-c-compass__nav-home` | `
` | Initiates a container for Compass home button. |
| `.pf-v6-c-compass__nav-main` | `
` | Initiates a container for Compass navigation main content. |
| `.pf-v6-c-compass__nav-search` | `
` | Initiates a container for Compass search button. |
| `.pf-v6-c-compass__footer` | `
` | Initiates the Compass footer. |
| `.pf-v6-c-compass__message-bar` | `
` | Initiates the Compass message bar. |
| `.pf-m-docked` | `.pf-v6-c-compass` | Modifies for dock layout. |
| `.pf-m-no-screen-warning` | `.pf-v6-c-compass` | Disables the screen warning that shows on smaller viewports. |
| `.pf-m-start` | `.pf-v6-c-compass__sidebar` | Modifies a Compass sidebar for start styles. **Required** |
| `.pf-m-end` | `.pf-v6-c-compass__sidebar` | Modifies a Compass sidebar for end styles. **Required** |
| `.pf-m-expanded` | `.pf-v6-c-compass__header`, `.pf-v6-c-compass__sidebar`, `.pf-v6-c-compass__main-footer`, `.pf-v6-c-compass__footer` | Modifies a Compass section for expanded styles. |