Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/bars-loader
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { BarsLoader } from "@/components/ui/pxl/bars-loader"<BarsLoader />Bars amount
Section titled “Bars amount”Use the bars prop to change the bars amount of the loader.
Use the size prop to change the size of the loader.
Variants
Section titled “Variants”Use the variant prop to change the colors of the loader.
API Reference
Section titled “API Reference”BarsLoader
Section titled “BarsLoader”| Prop | Type | Default | Description |
|---|---|---|---|
bars |
number |
9 |
Amount of bars |
size |
"default" | "4xs" | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" |
"default" |
Size of the bars loader |
variant |
"default" | "primary" | "secondary" | "muted" | "success" | "warning" | "danger" |
"default" |
Colors of the bars |
border |
"default" | "none" |
"default" |
Border of the loader |