Make your AI a shadcn expert

Diff Text

Git-diff style line animation where removed lines turn red and strike through while added lines slide in green for React applications.

Diff Text preview

Scroll to load preview

A code-aesthetic line-diff effect that mirrors what reviewers see in a pull request: every line starts neutral with a +, -, or space gutter, and on viewport entry the changes animate. Removed lines tint to a soft red, gain a strike-through, and fade slightly so the eye knows they are leaving. Added lines slide in from the left, gain a soft green tint, and lock into place. Context lines stay calm so the change reads at a glance. Built with Motion for React, Tailwind's color tokens, and a strict typography stack so the snippet looks at home in a docs hero, a changelog announcement, or a "what's new" section. Configure the line list, the trigger delay, and the per-line stagger; everything else stays out of your way.

Install with AI

If you've connected the shadcn.io MCP server to Claude Code, Cursor, Windsurf, or any MCP-ready AI editor, prompt your agent to install this text effect for you — no copy-paste, no CLI:

use shadcnio to install the diff-text text effect into my project

FAQ

Was this page helpful?

Sign in to leave feedback.