Classic loader
Circular tail
A continuous fading arc sweeps around a circular track. A single React component with its CSS built in and no dependencies. Install it with the shadcn CLI or copy the source.
Preview and installation
Size48px
Cycle1.6s
Color
Run this command in any project set up with shadcn.
npx shadcn@latest add https://loadercn.vercel.app/r/classic-circular-tail.jsonAdded the @loadercn registry? Use the short form:
npx shadcn@latest add @loadercn/classic-circular-tailThen add it to your interface:
import { ClassicCircularTail } from "@/components/ui/classic-circular-tail"
<ClassicCircularTail size={48} speed={1.6} />Inherits text color. Accepts className, style, and a custom loading label. Respects reduced-motion preferences.
classic-circular-tail.tsx
import type { CSSProperties, ComponentProps } from "react"
export type ClassicCircularTailProps = ComponentProps<"span"> & {
size?: number
/** Duration of one complete cycle, in seconds. */
speed?: number
label?: string
}
export function ClassicCircularTail({
size = 40,
speed = 1.6,
label = "Loading",
className,
style,
...props
}: ClassicCircularTailProps) {
return (
<span
role="status"
aria-label={label}
{...props}
className={["classic-circular-tail-loader", className]
.filter(Boolean)
.join(" ")}
style={
{
width: size,
height: size,
"--loader-size": `${size}px`,
"--loader-duration": `${Math.max(0.1, speed)}s`,
...style,
} as CSSProperties
}
>
<span aria-hidden="true" className="classic-circular-tail-loader-body">
<span />
</span>
<style>{`
.classic-circular-tail-loader { display: inline-flex; flex-shrink: 0; }
.classic-circular-tail-loader-body { position: relative; width: 100%; height: 100%; }
.classic-circular-tail-loader-body > span { position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, currentColor 300deg, transparent 302deg); mask-image: radial-gradient(farthest-side, transparent calc(100% - var(--loader-size) * .075), #000 calc(100% - var(--loader-size) * .075 + .5px)); animation: classic-circular-tail-loader-spin var(--loader-duration) linear infinite; }
@keyframes classic-circular-tail-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .classic-circular-tail-loader-body > span { animation: none; } }
`}</style>
</span>
)
}
Copy the complete file into your components directory. Styles are included.
When to use it
A sleek, modern ring with a fading tail. A polished default for dashboards and product UIs.
Props
Circular tail accepts size, speed, label, className, and style, like every loader in the collection. See the installation guide for the full reference.