oxyn
All components

Arc Rings

2D

Concentric rings broken into arcs by evenly spaced cuts, turning steadily around the center with neighbors spinning against each other.

arc-rings.tsx

Installation

Install with the shadcn CLI, or copy the component file. It only needs React.

npx shadcn@latest add https://your-domain.com/r/arc-rings.json

Usage

Updates live with the parameters you set.

import { ArcRings } from "@/components/arc-rings";

export function Thinking() {
  return (
    <ArcRings />
  );
}

Props

PropTypeDefaultDescription
linesnumber3Number of concentric rings.
cutsnumber3Cuts in each ring. The ring is split into this many equal arcs.
cutSpacingnumber30Angular width of each cut in degrees. 0 closes the rings.
lineSpacingnumber8Gap between neighboring rings in px.
lineWidthnumber1.5Stroke width of each ring in px.
speednumber0.3Turns per second.
alternatebooleantrueSpin neighboring rings in opposite directions.
sizenumber160Width and height of the orb in px.
minOpacitynumber0.4Opacity of the innermost ring. The outer ring is always fully opaque.
colorstring"#e4e4e7"Line color.
pausedbooleanfalseCoast to a stop on the current frame without unmounting. Turning it off eases back up to speed.
labelstring"Thinking"Accessible name; the wrapper is role="status".
className / style——Spread onto the wrapper div, along with any other div props.