| 1 |
--- |
| 2 |
id: Panel |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-panel |
| 5 |
propComponents: [Panel, PanelMain, PanelMainBody, PanelHeader, PanelFooter] |
| 6 |
--- |
| 7 |
|
| 8 |
## Examples |
| 9 |
|
| 10 |
### Basic |
| 11 |
|
| 12 |
```ts file="PanelBasic.tsx" |
| 13 |
``` |
| 14 |
|
| 15 |
### Header |
| 16 |
|
| 17 |
```ts file="PanelHeaderExample.tsx" |
| 18 |
``` |
| 19 |
|
| 20 |
### Footer |
| 21 |
|
| 22 |
```ts file="PanelFooterExample.tsx" |
| 23 |
``` |
| 24 |
|
| 25 |
### Header and footer |
| 26 |
|
| 27 |
```ts file="PanelHeaderFooter.tsx" |
| 28 |
``` |
| 29 |
|
| 30 |
### No body |
| 31 |
|
| 32 |
```ts file="PanelNoBody.tsx" |
| 33 |
``` |
| 34 |
|
| 35 |
### Raised |
| 36 |
|
| 37 |
```ts file="PanelRaised.tsx" |
| 38 |
``` |
| 39 |
|
| 40 |
### Bordered |
| 41 |
|
| 42 |
```ts file="PanelBordered.tsx" |
| 43 |
``` |
| 44 |
|
| 45 |
### Secondary variant |
| 46 |
|
| 47 |
```ts file="PanelSecondaryVariant.tsx" |
| 48 |
``` |
| 49 |
### Scrollable |
| 50 |
|
| 51 |
```ts file="PanelScrollable.tsx" |
| 52 |
``` |
| 53 |
|
| 54 |
### Scrollable with auto height |
| 55 |
|
| 56 |
```ts file="PanelScrollableWithAutoHeight.tsx" |
| 57 |
``` |
| 58 |
|
| 59 |
### Scrollable with header and footer |
| 60 |
|
| 61 |
```ts file="PanelScrollableHeaderFooter.tsx" |
| 62 |
``` |
| 63 |
|
| 64 |
### Pill |
| 65 |
|
| 66 |
```ts file="PanelPill.tsx" |
| 67 |
``` |