# Strikethrough Replace

Text gets crossed out and replaced with new text in a single motion.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/strikethrough-replace
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { StrikethroughReplace } from "@/components/framecn/strikethrough-replace";
```

```tsx
<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

  The strikethrough line cuts diagonally from top-left to bottom-right. The
  animation syncs the old text removal with the new text reveal.