Compositions
Core Primitives
Transitions
Typography
Customize
48
600
1
Installation
$ pnpm dlx shadcn@latest add @framecn/strikethrough-replace
Usage
import { StrikethroughReplace } from "@/components/framecn/strikethrough-replace";<StrikethroughReplace from="value" to="value" />API Reference
StrikethroughReplace
| Prop | Type | Default |
|---|---|---|
from | string | - |
to | string | - |
lineColor | string | "#ff5e3a" |
fontSize | number | 48 |
color | string | "#171717" |
fontWeight | number | 600 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
className | string | - |
Notes
Diagonal line cuts through text
The strikethrough line cuts diagonally from top-left to bottom-right. The animation syncs the old text removal with the new text reveal.