forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSkeletonShapes.tsx
More file actions
39 lines (38 loc) · 1.07 KB
/
SkeletonShapes.tsx
File metadata and controls
39 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { Fragment } from 'react';
import { Skeleton } from '@patternfly/react-core';
export const SkeletonShapes: React.FunctionComponent = () => (
<Fragment>
Small circle
<Skeleton shape="circle" width="15%" screenreaderText="Loading circle content" />
<br />
Medium circle
<Skeleton shape="circle" width="30%" />
<br />
Large circle
<Skeleton shape="circle" width="50%" />
<br />
Small square
<Skeleton shape="square" width="15%" screenreaderText="Loading square content" />
<br />
Medium square
<Skeleton shape="square" width="30%" />
<br />
Large square
<Skeleton shape="square" width="50%" />
<br />
Small rectangle
<div style={{ height: '200px' }}>
<Skeleton height="50%" width="50%" screenreaderText="Loading rectangle content" />
</div>
<br />
Medium rectangle
<div style={{ height: '200px' }}>
<Skeleton height="75%" width="75%" />
</div>
<br />
Large rectangle
<div style={{ height: '200px' }}>
<Skeleton height="100%" />
</div>
</Fragment>
);