Orb
A React component in Beamline's Voice & audio category.
The agent's presence: a thin ring of light around a lens in the brand's hue that holds still at rest, sends an arc round while thinking and widens with the voice; from a 16px agent mark to a 240px voice screen.
Use it for
- The agent's mark beside its messages and in the reasoning header.
- Voice screens and calls: listening and talking widen the ring with the volume.
- A single busy indicator for an agent (thinking).
Not for
- Status in dense UI (spinner).
- People (avatar).
- Ambient light around a surface (glow).
- A precise level (bar-visualizer, live-waveform).
Anatomy
- halo (bloom outside the ring)
- sphere (the lens)
- one (inner light, rises with the voice)
- two (the ring of light)
- shine (the arc that goes round while thinking)
Variants
- agentState: null (idle), thinking, listening, talking
- size: any: size-4 … size-60 via className; at 32px and under the bloom hides and the ring thickens
- colors: brand-derived --pui-orb-1/2 (default), any two colours (a voice's own ring)
States
- idle (still: the ring at rest, its lit side offset by seed; costs nothing)
- thinking (one bright arc goes round the ring; the ring dims under it)
- listening (a neutral ring widens with input volume)
- talking (the ring widens in colour and the lens lights with output volume)
- off screen or hidden tab (paused: data-paused)
- reduced motion (nothing turns: the thinking arc stands still; listening and talking hold a wider ring)
- listening or talking with no level given (the ring breathes on its own in CSS; no script runs)
- between states (the ring eases its width and turns its colour over --pui-duration-standard)
Keyboard
- None; decorative (aria-hidden) unless given a label, then role img.
Motion
Compositor transforms and opacity, and only while the agent thinks, listens or talks; idle runs no loop. Thinking turns one arc every 4 × --pui-duration-considered. With a level source the one script is a volume read, ~30 writes a second, only while listening or talking, on screen and not under reduced motion; each write widens the ring and lights the lens (the light eases over --pui-duration-fast). Without a source the ring breathes in CSS instead. A change of state eases the ring's width and turns its colour (agent hue to the neutral of your voice) over --pui-duration-standard. A size from a class never grows past the room (max-width 100%, round). Under reduced motion nothing turns: the thinking arc stands still and listening or talking hold a wider ring.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
agentState | null | "thinking" | "listening" | "talking" | null | What the agent is doing: idle (null), thinking, listening (reacts to the microphone), talking (reacts to its voice). |
label | string | — | Accessible name; the orb is decorative (hidden from assistive tech) without one. |
colors | [string, string] | — | Two colours for the ring (bright side, fading side). Defaults to the brand-derived --pui-orb-1/2 tokens. |
colorsRef | RefObject<[string, string]> | — | Live colours without re-rendering (read each frame while reacting to volume, otherwise on change). |
getInputVolume / getOutputVolume | () => number | — | getInputVolume: Returns the current 0–1 microphone level when sampled. Defaults to no live input sampler. getOutputVolume: Returns the current 0–1 agent audio level when sampled. Defaults to no live output sampler. |
inputVolumeRef / outputVolumeRef | RefObject<number> | — | inputVolumeRef: Receives the documented root element; no ref by default. outputVolumeRef: Receives the documented root element; no ref by default. |
volumeMode | "auto" | "manual" | "auto" | "auto" reads volume from the refs or getters; "manual" takes manualInput / manualOutput (0–1). |
manualInput / manualOutput | number | — | manualInput: Fixed 0–1 microphone level used when no live input is supplied. Defaults to 0. manualOutput: Fixed 0–1 agent audio level used when no live output is supplied. Defaults to 0. |
seed | number | — | Offsets the motion so orbs side by side never move in step. |
resizeDebounce | number | — | Compatibility input with no effect; omitted by default. The current orb needs no resize debounce. Deprecated: kept for API compatibility with the previous WebGL orb; has no effect. |
style / ref | CSSProperties / native Ref | — | style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default. |
classNames | OrbClassNames | — | Classes for the named visual parts; no part overrides by default. |
resizeDebounce | number | — | Compatibility input with no effect; omitted by default. The current orb needs no resize debounce. Deprecated: kept for API compatibility with the previous WebGL orb; has no effect. |
ref | Ref<HTMLSpanElement> | — | Receives the documented root element; no ref by default. |
manualInput | number | — | Fixed 0–1 microphone level used when no live input is supplied. Defaults to 0. |
manualOutput | number | — | Fixed 0–1 agent audio level used when no live output is supplied. Defaults to 0. |
inputVolumeRef | RefObject<number> | — | Receives the documented root element; no ref by default. |
outputVolumeRef | RefObject<number> | — | Receives the documented root element; no ref by default. |
getInputVolume | (() => number) | — | Returns the current 0–1 microphone level when sampled. Defaults to no live input sampler. |
getOutputVolume | (() => number) | — | Returns the current 0–1 agent audio level when sampled. Defaults to no live output sampler. |
className | string | — | Classes on the documented visual root; no override by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no inline overrides by default. |
Used in
Import
import { Orb } from "@beamline/orb";
Get it
Orb is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in Voice & audio
- Recorded answer: A spoken answer against a time limit: record (the microphone asked for first, a blocked one said with what to do), the running time against the limit…
- Call grid: The people on a video call, laid out for the room they are given: tiles as large as the space allows at the camera's shape, or the person talking (or a…
- Bar visualizer: A row of bars that says what a voice agent is doing: a sweep while connecting, the person's voice while listening, a slow breath while thinking, the…
- Matrix: A dot-matrix display: animated frame sets (loading, pulse, wave, syncing), text and digits in a 5×7 font, or a VU meter of levels or a live source. One…
- Transcript viewer: A recording and its words together: the spoken word lights up as it plays and the transcript follows it, any word or paragraph time plays from there…
- Waveform: The shape of a recording: one bar per slice of loudness, fitted to any width, with the played part in the accent, unmeasured slices hatched and a loading…
- Live waveform: Loudness drawn as it happens: a scrolling history of the microphone (or any live source) or its spectrum, a calm processing state while words are…
- Conversation bar: The control bar of a voice call with an agent: one button to call and hang up, the agent's state as bars, a call timer, mute, and typing when talking is…
- Audio player: One audio element and its controls: play with a loading state, a scrub bar with time, skip, speed and a playlist whose rows play into the same player…
- Voice button: The control that starts and stops talking: click to toggle or hold to talk (pointer, Space, Enter or a global shortcut), with a live level while…
- Scrub bar: A seekable timeline for audio or video: elapsed and total time, what has loaded, chapter marks, a time preview under the pointer, and the full keyboard…
- Speech input: A text field you can speak into: the mic dictates through any speech-to-text provider, the phrase being heard shows apart from the finished words, and…
- Voice picker: Choose a text-to-speech voice from a searchable list (name, accent, tone, use) and hear it first: each voice has its own orb, previews play one at a time…
- Microphone selector: Choose the microphone, test it with a live level and mute it, with every permission and device state spelled out: not yet allowed, blocked (and how to…