Arc

Ring of light in three looks: a soft conic fade, an outline with a faint track and bright stroke, and a short traveling highlight. ArcLayer groups positioned arcs; spin is opt-in and stops for reduced motion.

Open the preview in a new tab

The source comes with full access.

One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/arc
npx shadcn add @01orbital/arc
yarn shadcn add @01orbital/arc
bunx --bun shadcn add @01orbital/arc

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/glow/arc.tsx, as source you own and edit.

Usage

import { Arc, ArcLayer } from "@/components/glow/arc"

export default function ArcDemo() {
  return (
    <div className="dark @container grid aspect-16/10 w-full place-items-center bg-background p-6 text-foreground">
      <ArcLayer>
        <Arc
          size="min(72cqw, 36rem)"
          left="46%"
          from={225}
          sweep={240}
          color="oklch(0.88 0.08 65 / 0.9)"
          fade="oklch(0.66 0.08 35 / 0.4)"
        />
        <Arc
          size="min(94cqw, 47rem)"
          left="54%"
          from={35}
          sweep={230}
          color="oklch(0.82 0.07 290 / 0.8)"
          fade="oklch(0.60 0.06 320 / 0.3)"
          turn="ccw"
        />
        <Arc size="min(116cqw, 58rem)" left="46%" from={230} sweep={180} />
      </ArcLayer>
    </div>
  )
}

Anatomy

Arc is built from 2 parts. In the example they nest like this:

ArcLayer
└─ Arc
  • ArcLayer: A layer for Arc rings behind a section's content. It fills its positioned parent, clips any ring that runs past its edge, and ignores the pointer.
  • Arc: A ring of light, lit along part of its circle, for the background behind a section. Put it in an ArcLayer or another positioned parent: left and top set its center, and a ring often sits partly past the frame's edge.

API reference

ArcLayer

A layer for Arc rings behind a section's content. It fills its positioned parent, clips any ring that runs past its edge, and ignores the pointer.

Prop

Type

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

Arc

A ring of light, lit along part of its circle, for the background behind a section. Put it in an ArcLayer or another positioned parent: left and top set its center, and a ring often sits partly past the frame's edge.

It is hidden from assistive tech and ignores the pointer. When animated it makes one full turn per duration; reduced motion holds it still.

Prop

Type

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

Dependencies

npm: cn. The CLI installs them for you.

No other registry pieces.

On this page