Voice Glow
Light rising from the bottom edge of a voice surface, as if it spills in from outside the screen. It swells with the voice level and breathes while the agent thinks.
Set a timer for ten minutes
Installation
pnpm dlx shadcn@latest add @jds/voice-glow
Usage
import { VoiceGlow } from "@/components/voice/voice-glow"
<div className="relative isolate overflow-hidden rounded-4xl">
<VoiceGlow state={session.orb} level={session.level} />
{/* controls */}
</div>API Reference
VoiceGlow
| Prop | Type | Default |
|---|---|---|
stateSame states as the voice orb. | VoiceState | "idle" |
levelLoudness 0 to 1 of whoever is talking. | number | 0 |
paletteColors left to right along the edge. primary follows the theme. | "spectrum" | "iris" | "ember" | "primary" | string[] | "spectrum" |
intensityOverall brightness, 0 to 1. | number | 1 |
radiusCorner radius the edge line follows. Defaults to the container's; pass the display radius at the bottom of a phone screen. | number | – |