Compositions
Core Primitives
Transitions
Typography
Customize
72
1
Installation
$ pnpm dlx shadcn@latest add @framecn/marker-highlight
Usage
import { MarkerHighlight } from "@/components/framecn/marker-highlight";<MarkerHighlight />API Reference
MarkerHighlight
| Prop | Type | Default |
|---|---|---|
before | string | "" |
highlight | string | "builders" |
after | string | "." |
markerColor | string | "#facc15" |
baseColor | string | "#171717" |
highlightedTextColor | string | "#171717" |
fontSize | number | 72 |
fontWeight | number | 600 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
width | number | 1280 |
height | number | 720 |
className | string | - |
Notes
Marker uses absolute positioning
The marker bar is positioned absolutely behind the text. Ensure the parent has
position: relative for correct placement.
Text inversion requires contrast
When invertText is true, the text color inverts. Ensure your marker color
has sufficient contrast with the background.