Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Attachment
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Checkbox Group
- Collapsible
- Combobox
- Command
- Context Menu
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Fieldset
- Form
- Frame
- Group
- Input
- Input Group
- Kbd
- Label
- Menu
- Menubar
- Message
- Meter
- Number Field
- OTP Field
- Pagination
- Popover
- Preview Card
- Progress
- Questionnaire
- Radio Group
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Toolbar
- Tooltip
Shared
- Artifact
- Audio Player
- Canvas
- Chain of Thought
- Checkpoint
- Code Block
- Commit
- Connection
- Context
- Controls
- Edge
- Environment Variables
- Mic Selector
- Model Selector
- Node
- Node Toolbar
- Open in Chat
- Panel
- Plan
- Prompt Input
- Queue
- Reasoning
- Sandbox
- Schema Display
- Shimmer
- Snippet
- Sources
- Speech Input
- Stack Trace
- Suggestion
- Tool
- Transcription
- Web Preview
Hooks
Resources
Transcription
A timed transcript that follows playback.
"use client";
import { Transcription, TranscriptionSegment } from "@/registry/default/shared/transcription";
const segments = [
{
endSecond: 3.2,
startSecond: 0,
text: "Welcome to the design system walkthrough.",
},
{
endSecond: 7.8,
startSecond: 3.2,
text: "We will start with the component library.",
},
{
endSecond: 12.4,
startSecond: 7.8,
text: "Every primitive ships with a story.",
},
];
export default function Particle() {
return (
<div className="w-full max-w-lg">
<Transcription currentTime={5} segments={segments}>
{(segment, index: number) => (
<TranscriptionSegment index={index} key={segment.startSecond} segment={segment} />
)}
</Transcription>
</div>
);
}
Installation
pnpm dlx shadcn@latest add @frontal-labs/transcription
Usage
import { Transcription, TranscriptionSegment } from "@/components/transcription";API Reference
| Export | Props |
|---|---|
Transcription | <div> attributes, with some props omitted, plus its own options |
TranscriptionSegment | <button> attributes, plus its own options |
Open the source under Manual above for the exact prop types.
On This Page