Orbs

Neon Orb

An SVG neon tube ring with blacked-out electrode ends in five gas or phosphor colors. It can switch off to pale daylight glass or sputter like a failing tube, stilled under reduced motion; also exports a bloom ring.

The source comes with full access.

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

Installation

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

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/orbs/neon-orb.tsx, as source you own and edit.

Usage

import { NeonOrb } from "@/components/orbs/neon-orb"

// A lit tube needs a dark ground; the card shows it in dark mode.
export default function NeonOrbDemo() {
  return (
    <div className="grid w-full place-items-center p-6">
      <NeonOrb gas="neon" size={260} />
    </div>
  )
}

Anatomy

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

NeonOrb
  • NeonOrb: A ring of neon tube drawn as an SVG: a pale core with a glow inside and outside the ring, and a short dark break where the tube's two ends meet, at about 7 o'clock. It is decorative and hidden from assistive tech.
  • NeonBloomRing: A softer neon ring: an unbroken ring of color with layered bloom around it, without the tube's pale core or the dark break at its ends. It is decorative and hidden from assistive tech.

API reference

NeonOrb

A ring of neon tube drawn as an SVG: a pale core with a glow inside and outside the ring, and a short dark break where the tube's two ends meet, at about 7 o'clock. It is decorative and hidden from assistive tech.

With flicker a lit tube cuts out in a few quick bursts, then holds steady for long stretches. Reduced motion keeps it steady.

Prop

Type

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

NeonBloomRing

A softer neon ring: an unbroken ring of color with layered bloom around it, without the tube's pale core or the dark break at its ends. It is decorative and hidden from assistive tech.

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.