# Skeleton URL: /react/components/skeleton Source: https://github.com/daangn/seed-design/blob/dev/docs/content/react/components/skeleton.mdx A UI element that shows the outline of elements that will appear later while content is loading, making the loading time feel shorter. 사용 가능 버전: @seed-design/react@0.0.1, @seed-design/css@0.0.1 ## Preview ```tsx import { Skeleton, VStack } from "@seed-design/react"; export default function SkeletonPreview() { return ( ); } ``` ## Usage ```tsx import { Skeleton } from "@seed-design/react"; ``` ```tsx ``` ## Props ## Examples ### Line Height For a Skeleton that replaces text, you can specify a line-height token like text using `height="lineHeight.t4"`. ```tsx import { Skeleton, Text, VStack } from "@seed-design/react"; import { useState } from "react"; import { Switch } from "seed-design/ui/switch"; export default function SkeletonLineHeight() { const [loading, setLoading] = useState(true); return ( {loading ? ( ) : ( 콘텐츠 제목 )} {loading ? ( ) : ( 불러온 콘텐츠입니다. )} ); } ``` You can also use it for responsive heights. ```tsx ``` ### Radius ```tsx import { Flex, Skeleton } from "@seed-design/react"; export default function SkeletonRadius() { return ( ); } ``` ### Tone ```tsx import { Box, Skeleton, VStack } from "@seed-design/react"; export default function SkeletonTone() { return ( ); } ```