Black Friday is here 🔥 Get Wensity Pro for 20% less with

Skeleton

React skeleton loading placeholders for text, avatars, cards, and tables, plus a custom block, with a soft shimmer that stops under reduced motion.

Loading preview

Examples

Practical examples and common states for the same installable component.

Text

Line placeholders with realistic width rhythm.

examples/skeleton-text.tsx
import { SkeletonText } from "@/components/wensity/skeleton";
export function TextSkeleton() {
return <SkeletonText rows={5} widths={["92%", "100%", "74%", "46%"]} />;
}

Avatar

Circular identity placeholders that match avatar sizes.

examples/skeleton-avatar.tsx
import { SkeletonAvatar } from "@/components/wensity/skeleton";
export function AvatarSkeleton() {
return <SkeletonAvatar size="lg" />;
}

Card

A composed media, identity, and text loading shell.

examples/skeleton-card.tsx
import { SkeletonCard } from "@/components/wensity/skeleton";
export function CardSkeleton() {
return <SkeletonCard />;
}

Table

Header and row placeholders for dense data screens.

examples/skeleton-table.tsx
import { SkeletonTable } from "@/components/wensity/skeleton";
export function TableSkeleton() {
return <SkeletonTable rows={5} columns={4} />;
}

Custom

Raw blocks for product-specific loading layouts.

examples/skeleton-custom.tsx
import { Skeleton } from "@/components/wensity/skeleton";
export function CustomSkeleton() {
return (
<div className="grid grid-cols-[4rem_1fr] gap-4">
<Skeleton className="h-16 rounded-xl" tone="contrast" />
<Skeleton className="h-4 w-2/3 rounded-md" />
</div>
);
}

Overview

Skeleton is a React and Tailwind CSS skeleton loader, in Next.js or any React app, with ready made placeholders for text lines, avatars, cards, and tables, plus a plain block for custom shapes. A soft glint sweeps across each block, and the sweep only runs when the visitor has not asked for reduced motion. SkeletonText staggers line widths so a paragraph looks like a paragraph, SkeletonTable draws a header row above a configurable grid, and three tones fit different surfaces. Every placeholder is aria-hidden, so put aria-busy or a hidden loading message on the region that is waiting.

Installation

Run the following command

~/your-project
pnpm dlx wensity@latest add skeleton

Usage

Import Skeleton from @/components/wensity/skeleton and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.

app/example.tsx
import { SkeletonText } from "@/components/wensity/skeleton";
export function SkeletonDemo() {
return <SkeletonText rows={3} />;
}

Props

PropTypeDefaultDescription
variant"text" | "avatar" | "card" | "table" | "custom""custom"Placeholder shape. custom takes its size from your own classes.
tone"neutral" | "soft" | "contrast""neutral"Contrast of the placeholder against its surface.
rowsnumber3Number of lines, for the text and table variants.
animatebooleantrueRuns the shimmer. Set false for static placeholders.
  • Shimmering Skeleton Wrapper component preview

    Shimmering Skeleton Wrapper

    One angled GPU sweep that travels across any placeholder geometry you wrap, never a separate shimmer stuttering per row.

  • Animated Loading Skeleton component preview

    Animated Loading Skeleton

    An organic loading state instead of a spinner, with a slow aurora that breathes in the space where your content will land.

  • Progressive Image Loading component preview

    Progressive Image Loading

    Images that develop from a blur, color, or shimmer placeholder, without layout shift.

  • Text Shimmer component preview

    Text Shimmer

    A CSS shimmer sweep for headlines, one single element and entirely GPU-friendly.