| 1 |
--- |
| 2 |
id: Empty state |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-empty-state |
| 5 |
propComponents: ['EmptyState', 'EmptyStateBody', 'EmptyStateFooter', 'EmptyStateActions'] |
| 6 |
--- |
| 7 |
|
| 8 |
import { useState } from 'react'; |
| 9 |
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon'; |
| 10 |
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon'; |
| 11 |
|
| 12 |
## Examples |
| 13 |
### Basic |
| 14 |
|
| 15 |
```ts file="EmptyStateBasic.tsx" |
| 16 |
``` |
| 17 |
|
| 18 |
### Extra small |
| 19 |
|
| 20 |
```ts file="EmptyStateExtraSmall.tsx" |
| 21 |
``` |
| 22 |
|
| 23 |
### Small |
| 24 |
|
| 25 |
```ts file="EmptyStateSmall.tsx" |
| 26 |
``` |
| 27 |
|
| 28 |
### Large |
| 29 |
|
| 30 |
```ts file="EmptyStateLarge.tsx" |
| 31 |
``` |
| 32 |
|
| 33 |
### Extra large |
| 34 |
|
| 35 |
```ts file="EmptyStateExtraLarge.tsx" |
| 36 |
``` |
| 37 |
|
| 38 |
### With status |
| 39 |
```ts file="EmptyStateWithStatus.tsx" |
| 40 |
``` |
| 41 |
|
| 42 |
### Spinner |
| 43 |
|
| 44 |
```ts file="EmptyStateSpinner.tsx" |
| 45 |
``` |
| 46 |
|
| 47 |
### No match found |
| 48 |
|
| 49 |
```ts file="EmptyStateNoMatchFound.tsx" |
| 50 |
``` |