23rd logo23rd

Live Orb

A flat-lit sphere with two pill eyes that follow the pointer.

Preview

Installation

pnpm dlx shadcn@latest add @23rd/live-orb

Or from the public GitHub registry:

pnpm dlx shadcn@latest add radiumcoders/23rd.dev/live-orb

Usage

"use client"

import { LiveOrb } from "@/components/ui/live-orb"

export function Mascot() {
  return <LiveOrb />
}

custom uses color and eyeColor; webgl takes an optional three-stop colors.

<LiveOrb variant="white" />
<LiveOrb variant="black" />
<LiveOrb variant="webgl" />
<LiveOrb variant="webgl" colors={["#7C6AF7", "#7DD3C7", "#E8B4D4"]} />
<LiveOrb variant="custom" color="#7C5CFF" eyeColor="#FAFAFA" />

Props

PropTypeDefault
variant"white" | "black" | "webgl" | "custom""white"
sizenumber280
colorstring"#7C5CFF"
eyeColorstring"#FAFAFA"
colorsstring[]violet / foam / dust-rose
interactivebooleantrue
blinkbooleantrue
classNamestringReact only
classstringSvelte only