Crescent Ring Loader

A colored crescent rotating over a faint circular track for a loading state. Size and colors are customizable; reduced motion replaces rotation with a slow opacity breath.

Installation

npx shadcn@latest add @01orbital/crescent-ring-loader

Usage

import { CrescentRingLoader } from "@/components/loader/crescent-ring-loader"

/** CrescentRingLoader at its default size and palette. */
export default function CrescentRingLoaderDemo() {
  return <CrescentRingLoader />
}

This example installs with everything it uses:

npx shadcn@latest add @01orbital/crescent-ring-loader-demo

API reference

A colored crescent that rotates over a faint circular track for a loading state. Recolor with --ld-a and --ld-b through style. Exposes a status labelled "Loading"; pass aria-label to change it. With reduced motion the spin becomes a slow opacity breath.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Last updated on