| 1 |
--- |
| 2 |
id: Skeleton |
| 3 |
section: components |
| 4 |
cssPrefix: pf-v6-c-skeleton |
| 5 |
propComponents: ['Skeleton'] |
| 6 |
--- |
| 7 |
|
| 8 |
import { Fragment } from 'react'; |
| 9 |
import t_global_font_size_4xl from '@patternfly/react-tokens/dist/esm/t_global_font_size_4xl'; |
| 10 |
import t_global_font_size_3xl from '@patternfly/react-tokens/dist/esm/t_global_font_size_3xl'; |
| 11 |
import t_global_font_size_2xl from '@patternfly/react-tokens/dist/esm/t_global_font_size_2xl'; |
| 12 |
import t_global_font_size_xl from '@patternfly/react-tokens/dist/esm/t_global_font_size_xl'; |
| 13 |
import t_global_font_size_lg from '@patternfly/react-tokens/dist/esm/t_global_font_size_lg'; |
| 14 |
import t_global_font_size_md from '@patternfly/react-tokens/dist/esm/t_global_font_size_md'; |
| 15 |
import t_global_font_size_sm from '@patternfly/react-tokens/dist/esm/t_global_font_size_sm'; |
| 16 |
|
| 17 |
## Examples |
| 18 |
|
| 19 |
### Default |
| 20 |
|
| 21 |
```ts file="./SkeletonDefault.tsx" |
| 22 |
|
| 23 |
``` |
| 24 |
|
| 25 |
### Percentage widths |
| 26 |
|
| 27 |
```ts file="./SkeletonPercentageWidth.tsx" |
| 28 |
|
| 29 |
``` |
| 30 |
|
| 31 |
### Percentage heights |
| 32 |
|
| 33 |
```ts file="./SkeletonPercentageHeight.tsx" |
| 34 |
|
| 35 |
``` |
| 36 |
|
| 37 |
### Text modifiers |
| 38 |
|
| 39 |
```ts file="./SkeletonText.tsx" |
| 40 |
|
| 41 |
``` |
| 42 |
|
| 43 |
### Shapes |
| 44 |
|
| 45 |
```ts file="./SkeletonShapes.tsx" |
| 46 |
|
| 47 |
``` |