affectUI › Illustrations › Product scenes
Voice Capture
A dictation panel while someone speaks – the voice in a quiet well as thin bars rising and falling with the loudness, the time ticking, a soft color glow beneath it.
Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/voice-capture.json · Import from @/components/ui/voice-capture
When to use
- Hero or feature section of a product with voice input – dictation, voice notes, talking to an agent
- Beside a headline or at the edge of a card – the panel runs out into the page on the right, so it can sit against an edge
- Launch posts and OG images – a still frame with playing={false} reads well small
When not to use
- As a real recorder – it's a picture of one; it doesn't listen and nothing in it can be clicked
- In tight spaces – it needs about 420 × 230px, and its fade wants room on the right
Usage
import { VoiceCapture } from "@/components/ui/voice-capture";
export function Hero() {
return (
<section className="relative">
<h1>Just say it</h1>
<VoiceCapture className="absolute right-0 top-24" />
</section>
);
}Props
| Name | Type | Default | Description |
|---|---|---|---|
playing | boolean | true | Runs the voice, the glow and the time – false holds a still frame |
start | number | 7 | The time it starts from, in seconds |
className | string | Extra class on the root |
Accessibility
- Decorative: the whole illustration is hidden from screen readers and takes no clicks
- With prefers-reduced-motion nothing moves: the voice, the glow and the time stand still
Responsive
- Fixed size, about 420 × 230px with its shadow and fade – scale it with zoom or a transform for smaller screens
- Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
Requirements
- React 19
Related
- Voice Orb – The face of a voice assistant – a sphere of dots that breathes, catches sound, collapses into a spinning ring while thinking and ripples when it speaks
- Progress Pill – An agent building a report as a slim pill – its pixel mark, the title and how far it is, the step it's on as a subtitle, a thin bar with a shimmer, a soft color glow beneath
- Model Menu – A model picker – DeepSeek, GPT, Claude, Gemini and more with their marks, a pink band gliding to the picked one, its right edge and foot fading into the page
- Glow Keyboard – AI chat input that types itself over a glass keyboard – every key press sends a wave up the gradient floor