Loading preview
Bar Loader
LoadersA thin indeterminate progress bar for pages and cards that are loading.
Loading placeholders with a light sweep, plus a text-lines helper.
npx shadcn@latest add @venusui/skeleton-shimmerRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/skeleton-shimmer.tsxThe 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>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| lines | number | 3 | SkeletonText: number of lines. |
SkeletonShimmer accepts all <div> props; size it with classes like h-4 w-32.
skeleton-shimmer keyframes. Works in Server Components.aria-hidden. Mark the loading region with aria-busy="true" and a hidden “Loading…”.via-foreground/[0.07] opacity in the file.Unknown registry "@venusui"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 foundnpx shadcn@latest init in your project first.A thin indeterminate progress bar for pages and cards that are loading.
Three dots that rise and fall in turn, for typing or inline loading states.
Circular progress with the value in the middle, exposed as an accessible progress bar.