Skip to content
VenusUI
Get started

Skeleton Shimmer

Loading placeholders with a light sweep, plus a text-lines helper.

Preview

Installation

npx shadcn@latest add @venusui/skeleton-shimmer

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/skeleton-shimmer.tsx

Usage

The code behind the preview above.

skeleton-shimmer-demo.tsx

import { SkeletonShimmer, SkeletonText } from "@/components/ui/skeleton-shimmer"

export default function SkeletonShimmerDemo() {
  return (
    <div aria-busy="true" className="flex w-full max-w-sm items-start gap-4 rounded-xl border bg-card p-5">
      <span className="sr-only">Loading profile…</span>
      <SkeletonShimmer className="size-12 shrink-0 rounded-full" />
      <SkeletonText lines={3} className="flex-1" />
    </div>
  )
}

API reference

PropTypeDefaultDescription
linesnumber3SkeletonText: number of lines.

SkeletonShimmer accepts all <div> props; size it with classes like h-4 w-32.

Requirements

  • Tailwind CSS v4. The CLI adds the skeleton-shimmer keyframes. Works in Server Components.

Customization

  • Match placeholder shapes to the real content to avoid layout jumps.

Accessibility

  • Placeholders are aria-hidden. Mark the loading region with aria-busy="true" and a hidden “Loading…”.
  • No sweep with reduced motion.

Troubleshooting

The sweep isn’t visible in light mode.
Raise the via-foreground/[0.07] opacity in the file.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.
Loading preview

Bar Loader

Loaders

A thin indeterminate progress bar for pages and cards that are loading.

Loading preview

Three dots that rise and fall in turn, for typing or inline loading states.

Loading preview

Circular progress with the value in the middle, exposed as an accessible progress bar.