Documentation menu

Text Skeleton

A composable text placeholder with a natural final-line measure.

Installation

pnpm dlx shadcn@latest add https://loading.design/r/text-skeleton.json

Usage

import { TextSkeleton } from "@/components/loading/text-skeleton"
<TextSkeleton lines={4} lastLineWidth="68%" animated={true} />

API

PropTypeDefaultDescription
linesnumber3Number of placeholder text lines.
lastLineWidth`${number}%`68%Width of the final line, matching a natural paragraph rag.
animatedbooleantrueWhether to apply a subtle opacity pulse.

Accessibility

The skeleton is hidden from assistive technology. Apply aria-busy to the region it represents and retain a stable accessible name for that region.