Loading preview
Dots Loader
LoadersThree dots that rise and fall in turn, for typing or inline loading states.
A thin indeterminate progress bar for pages and cards that are loading.
npx shadcn@latest add @venusui/bar-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/bar-loader.tsxThe code behind the preview above.
bar-loader-demo.tsx
import { BarLoader } from "@/components/ui/bar-loader"
export default function BarLoaderDemo() {
return (
<div className="w-full max-w-sm overflow-hidden rounded-xl border bg-card">
<BarLoader label="Loading results" className="rounded-none" />
<div className="space-y-2 p-4">
<div className="h-3 w-2/3 rounded bg-muted" />
<div className="h-3 w-1/2 rounded bg-muted" />
</div>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | "Loading" | Accessible name, e.g. “Loading results”. |
All <div> props except children.
bar-loader keyframes and --animate-bar-loader to your CSS. Works in Server Components.className="fixed inset-x-0 top-0 z-50 rounded-none".bg-primary in the file to change it.role="progressbar" without a value, which screen readers announce as busy or indeterminate.bar-loader keyframes are in your CSS (the CLI adds them).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.Three dots that rise and fall in turn, for typing or inline loading states.
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.