Skeleton

The shape of content that is on its way.

Example

tsx
<Stack direction="row" gap="md" align="start">
  <Skeleton width={48} height={48} borderRadius="50%" />
  <Stack gap="sm" grow>
    <SkeletonText lines={3} lastLineWidth="60%" />
  </Stack>
</Stack>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Skeleton, SkeletonText, Stack } from "@dash/server";

Props

SkeletonProps

Prop
Type
Description
widthstring | number
heightstring | number
borderRadiusstring | number

SkeletonTextProps

Prop
Type
Description
linesnumber
lastLineWidthstring
gapstring
PreviousLoading
On this page