Compositions
Core Primitives
Transitions
Typography
Customize
72
1
Installation
$ pnpm dlx shadcn@latest add @framecn/inline-highlight
Usage
import { InlineHighlight } from "@/components/framecn/inline-highlight";<InlineHighlight before="value" highlight="value" />API Reference
InlineHighlight
| Prop | Type | Default |
|---|---|---|
before | string | - |
highlight | string | - |
after | string | "" |
baseColor | string | "#171717" |
highlightColor | string | "#ff5e3a" |
fontSize | number | 48 |
fontWeight | number | 600 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
className | string | - |
Notes
Word selection is array-based
Pass an array of word indices to highlightWords to animate multiple words.
The animation sequences through each word in the array.