A textarea you can rewind. Hold undo and drag, and your writing runs back under your hand, with the words you deleted coming back in colour.
pnpm dlx shadcn@latest add "https://detentui.com/r/rewind.json"