SkeletonText
Feedback

SkeletonText

Display placeholder lines while text content is loading.

SkeletonText displays placeholder lines while text loads.

Import

TSX
import { SkeletonText } from "@solarius/onset";

Props

SkeletonTextProps props
PropTypeDefaultDescription
linesnumber3Number of skeleton lines.
lastWidthCSSProperties['width']"55%"Width of the final (shortest) line.
animationSkeletonAnimation—Animation for every line.

Example

SkeletonText