Skip to content

Skeleton

<ts-skeleton> vv0.4.0

The ts-skeleton component.

Open in Storybook for interactive demos.

<ts-skeleton animation="pulse" lines="1" variant="text"></ts-skeleton>
PropertyAttributeTypeDefaultDescription
animationanimation"none" | "pulse" | "wave"'pulse'Animation style.
heightheightstring | undefinedCSS height of the skeleton.
lineslinesnumber1Number of lines to render (text variant only).
variantvariant"circular" | "rectangular" | "text"'text'The skeleton shape variant.
widthwidthstring'100%'CSS width of the skeleton.

Use ::part() to style internal elements:

PartDescription
baseThe skeleton element container.
lineIndividual skeleton line (text variant).
ts-skeleton::part(base) {
/* your custom styles */
}
<ts-skeleton animation="pulse" lines="1" variant="text"></ts-skeleton>
import { TsSkeleton } from '@tessera-ui/react';
<TsSkeleton animation="pulse" lines="1"></TsSkeleton>