npx shadcn@latest add https://components.bksh.site/r/dots-loader.json

Loaders

Dots Loader

Three dots bouncing in sequence.

Example.tsx
import { DotsLoader } from "@/components/better/dots-loader"
export function Example() {
return (
<DotsLoader
size={12}
count={3}
gap={8}
bounce={12}
speed={0.9}
color="#6366f1"
/>
)
}

Dependencies

Props

PropTypeDefaultDescription
classNamestring
sizenumber10Diameter of each dot in pixels.
countnumber3Number of dots.
gapnumber8Gap between dots in pixels.
colorstring"currentColor"Dot colour (any CSS color). Defaults to the current text colour.
speednumber0.9Seconds for one full bounce cycle.
bouncenumberHow far each dot travels up, in pixels (defaults to `size`).