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

Loaders

Orbit Loader

Dots circling a shared centre.

Example.tsx
import { OrbitLoader } from "@/components/better/orbit-loader"
export function Example() {
return (
<OrbitLoader size={40} count={3} dotSize={8} speed={1.2} color="#6366f1" />
)
}

Dependencies

Props

PropTypeDefaultDescription
classNamestring
sizenumber40Diameter of the orbit in px.
countnumber3Number of dots on the orbit.
dotSizenumber8Diameter of each dot in px.
colorstring"currentColor"Dot colour (any CSS color).
speednumber1.2Seconds per revolution.