Loading component…
Loading component…
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.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import VoiceCapture from ./voice-capture.
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>
);
}| 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 |
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"