Skeleton
이 문서는 정리 중이에요. 문의 내용은 #_design_core 채널을 찾아주세요.
import { Skeleton, VStack } from "@seed-design/react";
export default function SkeletonPreview() {
return (
<VStack gap="x4" align="center">
<Skeleton radius="full" width="x12" height="x12" />
<VStack direction="column" gap="x2">
<Skeleton radius="8" height="x4" width="250px" />
<Skeleton radius="8" height="x4" width="250px" />
</VStack>
</VStack>
);
}
Usage
import { Skeleton } from "@seed-design/react";
<Skeleton />
Props
Prop
Type
Examples
Radius
import { Flex, Skeleton } from "@seed-design/react";
export default function SkeletonRadius() {
return (
<Flex gap="x4" align="center">
<Skeleton radius="0" width="x12" height="x12" />
<Skeleton radius="8" width="x12" height="x12" />
<Skeleton radius="16" width="x12" height="x12" />
<Skeleton radius="full" width="x12" height="x12" />
</Flex>
);
}
Tone
import { Box, Skeleton, VStack } from "@seed-design/react";
export default function SkeletonTone() {
return (
<VStack gap="x4" alignItems="flex-start" width="full">
<Skeleton tone="neutral" radius="16" width="full" height="x12" />
<Skeleton tone="magic" radius="16" width="full" height="x12" />
</VStack>
);
}
Last updated on