# 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.

Component · Glow · https://01orbital.dev/docs/components/concentric-rings

## Installation

```bash
npx shadcn@latest add @01orbital/concentric-rings
```

## Usage

```tsx
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:

```bash
npx shadcn@latest add @01orbital/concentric-rings-demo
```

## 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 | Default | Description |
| --- | --- | --- | --- |
| `size?` | `number \| string` | `"100%"` | Diameter of the outer ring: px as a number, or any CSS length or percentage as a string. Defaults to the full width of the root. |
| `rings?` | `number` | `3` | How many rings, rounded to a whole number and at least 1. With more than one, the inner ring is half the size of the outer one. |
| `ringWidth?` | `number` | `1.5` | Stroke width of the faint full rings, in px. |
| `arcWidth?` | `number` | `2.5` | Stroke width of the bright arcs, in px. |
| `ringColor?` | `string` | `"oklch(0.842 0.061 196 / 0.14)"` | Color of the faint full rings. Any CSS color; oklch with alpha works. |
| `arcColor?` | `string` | `"oklch(0.842 0.061 196)"` | Color of the bright arcs. Any CSS color. |
| `arcSweep?` | `number` | `108` | Length of the bright arc on every ring, in degrees from 0 to 360, clockwise from 12 o'clock. |
| `animate?` | `boolean` | `false` | Turns the rings in alternating directions, from 26 seconds per turn on the outer ring to 12 on the inner. Off by default; reduced motion holds them still. |

## Dependencies

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

- [Arc](https://01orbital.dev/docs/components/arc)

npm: `cn`

## Examples

- **Concentric Rings Ember** (`@01orbital/concentric-rings-ember`): Concentric Rings Ember: an example of concentric-rings.
