Captions
Compositions
Core Primitives
Transitions
Typography
Customize
1.5
64
1
Installation
$ pnpm dlx shadcn@latest add @framecn/caption-neon-accent
Usage
import { CaptionNeonAccent } from "@/components/framecn/caption-neon-accent";<CaptionNeonAccent accentWords={["frame.", "code."]} />API Reference
CaptionNeonAccent
| Prop | Type | Default |
|---|---|---|
words | CaptionWord[] | (demo words) |
accentWords | string[] | ["frame.", "code."] |
color | string | "#ffffff" |
accentColor | string | "#a855f7" |
fontSize | number | 64 |
fontWeight | number | string | 700 |
accentScale | number | 1.5 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 180 |
width | number | 1280 |
height | number | 720 |
className | string | - |
Notes
Word timing is in seconds
The start and end fields on each CaptionWord are in seconds.