-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathSkeletonListCard.tsx
More file actions
39 lines (38 loc) · 903 Bytes
/
SkeletonListCard.tsx
File metadata and controls
39 lines (38 loc) · 903 Bytes
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 {
Box,
SimpleGrid,
Skeleton,
SkeletonCircle,
SkeletonText,
Stack,
} from "@chakra-ui/react";
export const SkeletonListCard = () => {
return (
<SimpleGrid minChildWidth="300px" columns={{ sm: 2, md: 3, lg: 4 }} gap={4} as="section">
{[...new Array(8)].map((_el, index) => (
<Box
key={index}
maxW="sm"
h={321}
borderWidth="1px"
borderRadius="sm"
borderColor="whiteAlpha.100"
boxShadow={["base"]}
overflow="hidden"
overflowY="clip"
textOverflow="ellipsis"
bgColor="whiteAlpha.100"
as="article"
>
<Stack>
<Skeleton height="167px" />
<Box p={4}>
<SkeletonCircle />
<SkeletonText mt={4} />
</Box>
</Stack>
</Box>
))}
</SimpleGrid>
);
};