Skip to Content

Concentric Rings

Concentric rings graphic of nested outline arcs from outer to inner, built on Arc, with optional content centered on top. Ring count, colors, stroke widths and arc sweep are props; optional spin alternates direction per ring.

Installation

pnpm dlx shadcn@latest add @01orbital/concentric-rings

Usage

import { ConcentricRings } from "@/components/glow/concentric-rings"

export default function ConcentricRingsDemo({
  animate = false,
}: {
  animate?: boolean
}) {
  return (
    <div className="relative aspect-square w-full max-w-md overflow-hidden rounded-lg">
      <ConcentricRings
        className="absolute inset-0"
        size="82%"
        animate={animate}
      />
    </div>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/concentric-rings-demo

Examples

Emberconcentric-rings-ember

Concentric Rings Ember: an example of concentric-rings.

pnpm dlx shadcn@latest add @01orbital/concentric-rings-ember

API reference

Concentric rings, outer to inner, each a faint full ring with a bright arc along part of it. They step down from the full size to half of it, and children sit centered on top.

The rings are hidden from assistive tech and ignore the pointer; children stay interactive.

Prop

Type

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

Dependencies

npm: cn. The CLI installs it for you.

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

Last updated on