# Voice Orb

Animated voice assistant orb for AI agents: a painted CSS cobalt tide rising into scarlet that breathes faster across idle, listening and speaking states. Decorative and reduced-motion aware.

Component · Chat · https://01orbital.dev/docs/components/voice-orb

## Installation

```bash
npx shadcn@latest add @01orbital/voice-orb
```

## Usage

```tsx
import { VoiceOrb } from "@/components/orbs/voice-orb"

type DemoProps = {
  // Controlled by the shared Browse playback button.
  motion?: boolean
}

export default function Demo({ motion = false }: DemoProps) {
  return (
    <div className="flex w-full flex-wrap items-center justify-center gap-8 p-6">
      {(["idle", "listening", "speaking"] as const).map((state) => (
        <figure key={state} className="flex flex-col items-center gap-4">
          <VoiceOrb state={state} motion={motion} size={180} />
          <figcaption className="text-sm text-muted-foreground capitalize">
            {state}
          </figcaption>
        </figure>
      ))}
    </div>
  )
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/voice-orb-demo
```

## API reference

An orb for a voice agent: two blurred color fields, a tide from below that rises into the upper field as it breathes, and a glow along the seam where they meet. `state` sets the tempo. The motion is CSS only.

It is hidden from assistive tech, so announce the agent's state in words too, for example in a visually hidden `aria-live` region.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `palette?` | `OrbPaletteName \| VoiceOrbPalette` | `DEFAULT_PALETTE` | A colorway from Orb Palettes by name, or a `VoiceOrbPalette` of your own. Omitted, the authored scarlet over cobalt. |
| `state?` | `VoiceOrbState` | `"idle"` | What the voice agent is doing. It sets the tempo and how far the tide climbs. |
| `size?` | `number` | `200` | Diameter in px. The blur scales with size, so the form holds from 900px down to 16px. |
| `motion?` | `boolean` | `true` | Set false to freeze the paint. The orb animates whatever the visitor's reduced-motion setting, because its slow motion is how it shows state. To offer a pause (WCAG 2.2.2), wire a control to this prop. |
| `rim?` | `"auto" \| "warm" \| "cool" \| "none"` | `"auto"` | A thin line just inside the edge: `warm` dark ink for paper grounds, `cool` a pale line for graphite, `none` for flat marks, or `auto`, which is warm in light mode and cool in dark mode. |
| `className?` | `string` |  | Classes for the root element, the round, clipped orb. Its width and height come from `size`, not from classes. |
| `ref?` | `Ref<HTMLDivElement>` |  | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). |

## Dependencies

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

- [Orb Palettes](https://01orbital.dev/docs/components/orb-palettes)

npm: `cn`

## Used in blocks

- [Docked Chat with Voice Orb](https://01orbital.dev/docs/blocks/docked-chat-01)
- [Support Chat with Bot-to-Human Handoff](https://01orbital.dev/docs/blocks/support-handoff-chat-01)
