For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
/
0
Sponsor

ORB-02

ornate scrollwork on a rolling dome

Installation

$ pnpm dlx shadcn@latest add https://shadercn.vercel.app/r/orb-02.json

Usage

import { Orb02 } from "@/components/orbs/orb-02";
<Orb02 size={280} state="idle" />

Props

Component Props

PropTypeDefaultDescription
state"idle" | "thinking" | "speaking""idle"Drive preset the orb eases toward
sizenumber280Rendered size in CSS pixels
paramsPartial<Record<string, number>>-Shader param overrides, see Shader Props
colorsPartial<Record<string, string>>-Shader colour overrides as hex strings
statePresetsPartial<Record<OrbState, Record<string, number>>>-Replace the built-in per-state param presets
stateColorsPartial<Record<OrbState, Record<string, string>>>-Replace the built-in per-state colours
stateVolumesPartial<Record<OrbState, { input?: number; output?: number }>>-Pin the drive volumes a state settles on
volumes{ input?: number; output?: number }-Drive the orb directly, bypassing synthesis
pausedbooleanfalseFreeze the frame loop
pauseOffscreenbooleantrueStop rendering while scrolled out of view
maxDprnumber2Upper bound on the device pixel ratio
classNamestring-Class on the wrapper element
styleCSSProperties-Inline style on the wrapper element
ariaLabelstring-Accessible name for the canvas

Shader Props

Pass any of these through params; each is a single f32 uniform read by the shader.

ParamLabelRangeStepDefault
speedAnim speed0.015100.050.5
swirlSwirl030.0150.06
radiusRadius0.1530.0150.9
swellInput swell010.010.06
zoomPattern zoom0.15400.24.4
bulgeSphere bulge0100.050.35
warpFreqWarp frequency0.05100.051.5
hueShiftHue shift06.2830.050
coreClampFlare size0.00330.0150.12
falloffFill0.0540.051
gainExposure0.015100.050.55
rimRim light030.0150.12
rimPowRim tightness0.15150.12.2
alphaGainAlpha gain0.05150.12.4
baseVisBase visibility01.50.010.08

Credits

Shader by XorDev, ported from orbkit (WebGL/GLSL) to WebGPU/WGSL.