An animated text component that draws a strike line across old text then reveals replacement text in its place.
"use client"; import { StrikethroughReplace } from "@/components/ui/strikethrough-replace"; export default function Default() { return ( <div className="relative flex h-[420px] w-full items-center justify-center overflow-hidden rounded-xl border"> <StrikethroughReplace from="Old text" to="New text" /> </div> ); }