Loading preview
Bar Loader
LoadersA 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.
npx shadcn@latest add @venusui/dots-loaderRun 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/dots-loader.tsxThe code behind the preview above.
dots-loader-demo.tsx
import { DotsLoader } from "@/components/ui/dots-loader"
export default function DotsLoaderDemo() {
return (
<div className="flex flex-col items-center gap-6">
<DotsLoader className="text-2xl" />
<div className="inline-flex items-center gap-2 rounded-full border bg-card px-4 py-2 text-sm text-muted-foreground">
Assistant is typing
<DotsLoader label="Assistant is typing" />
</div>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | "Loading" | Text announced to screen readers. |
All <span> props except children.
dots-loader keyframes and --animate-dots-loader to your CSS.cn helper at @/lib/utils. Works in Server Components.className="text-2xl" makes them bigger.role="status" and announces label.dots-loader keyframes and --animate-dots-loader are in your CSS.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.
A CSS-only cube with six content faces that tumbles slowly and pauses on hover.
A tilted wall of vertically scrolling columns, for screenshots and showcases.