| 1 |
--- |
| 2 |
id: Sidebar |
| 3 |
cssPrefix: pf-v6-c-sidebar |
| 4 |
section: components |
| 5 |
propComponents: ['Sidebar', 'SidebarContent', 'SidebarPanel'] |
| 6 |
--- |
| 7 |
|
| 8 |
## Examples |
| 9 |
### Basic |
| 10 |
```ts file="./SidebarBasic.tsx" |
| 11 |
``` |
| 12 |
|
| 13 |
### Stack |
| 14 |
```ts file="./SidebarStack.tsx" |
| 15 |
``` |
| 16 |
|
| 17 |
### Panel right with gutter |
| 18 |
```ts file="./SidebarPanelRightGutter.tsx" |
| 19 |
``` |
| 20 |
|
| 21 |
### Sticky panel |
| 22 |
A `tabIndex` should be added to the `Sidebar` when there is scrollable content in order for the overflow content to be accessible by keyboard. |
| 23 |
```ts file="./SidebarStickyPanel.tsx" |
| 24 |
``` |
| 25 |
|
| 26 |
### Static panel |
| 27 |
A `tabIndex` should be added to the `Sidebar` when there is scrollable content in order for the overflow content to be accessible by keyboard. |
| 28 |
```ts file="./SidebarStaticPanel.tsx" |
| 29 |
``` |
| 30 |
|
| 31 |
### Responsive panel width |
| 32 |
A `tabIndex` should be added to the `Sidebar` when there is scrollable content in order for the overflow content to be accessible by keyboard. |
| 33 |
```ts file="./SidebarResponsivePanel.tsx" |
| 34 |
``` |
| 35 |
|
| 36 |
### Border |
| 37 |
```ts file="./SidebarBorder.tsx" |
| 38 |
``` |
| 39 |
|
| 40 |
### Padding on panel |
| 41 |
```ts file="./SidebarPaddingPanel.tsx" |
| 42 |
``` |
| 43 |
|
| 44 |
### Padding on content |
| 45 |
```ts file="./SidebarPaddingContent.tsx" |
| 46 |
``` |