MD-02Media
Synced Transcript
A transcript that follows the spoken word, lets you click any word to jump there, and waits when you scroll away.
PROAudio Player Card and more like it are in Kokonut UI Pro
Installation
Synced Transcript is a free, open-source React component in the Kokonut UI Media collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/synced-transcript.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/synced-transcriptOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/synced-transcript.tsx.
npm install lucide-reactUsage
import SyncedTranscript from "@/components/kokonutui/synced-transcript";
export default function Example() {
return <SyncedTranscript />;
}Props
titlestringDefault "Frame Rate · Episode 48"segmentsTranscriptSegment[]Default built-indurationnumberSeconds. Defaults to the end of the last segment. Playback is simulated; drive it from your own audio with onTimeChange.
onTimeChange(seconds: number) => voidclassNamestringExtra classes for the root element.
TranscriptSegment
speakerrequiredstringstartrequirednumberSeconds from the start.
endrequirednumbertextrequiredstringDependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react | ^0.556.0 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

