Debian Codegraph @

node/@patternfly/react-core/src/components/Skeleton/examples/SkeletonShapes.tsx

raw
1 import { Fragment } from 'react';
2 import { Skeleton } from '@patternfly/react-core';
3
4 export const SkeletonShapes: React.FunctionComponent = () => (
5 <Fragment>
6 Small circle
7 <Skeleton shape="circle" width="15%" screenreaderText="Loading circle content" />
8 <br />
9 Medium circle
10 <Skeleton shape="circle" width="30%" />
11 <br />
12 Large circle
13 <Skeleton shape="circle" width="50%" />
14 <br />
15 Small square
16 <Skeleton shape="square" width="15%" screenreaderText="Loading square content" />
17 <br />
18 Medium square
19 <Skeleton shape="square" width="30%" />
20 <br />
21 Large square
22 <Skeleton shape="square" width="50%" />
23 <br />
24 Small rectangle
25 <div style={{ height: '200px' }}>
26 <Skeleton height="50%" width="50%" screenreaderText="Loading rectangle content" />
27 </div>
28 <br />
29 Medium rectangle
30 <div style={{ height: '200px' }}>
31 <Skeleton height="75%" width="75%" />
32 </div>
33 <br />
34 Large rectangle
35 <div style={{ height: '200px' }}>
36 <Skeleton height="100%" />
37 </div>
38 </Fragment>
39 );