Make your AI a shadcn expert

Password Text

Text rendered as masking dots that morph one-by-one into the real characters with a staggered cross-fade and subtle scale, built with React, Next.js, and motion/react for privacy-aware UI.

Password Text preview

Scroll to load preview

A password field's reveal interaction, lifted out as a primitive. By default the string renders as a row of dots ("••••••••"); on hover, click, or an auto-cycling timer, the dots morph one-by-one into the actual characters via a cross-fade plus a tiny scale tween — same physical position, same width, just a different glyph fading through. Spaces stay rigid spaces, never dots, so the cadence of the original text is preserved. Every reveal is GPU-driven via motion/react's AnimatePresence with a popLayout mode, so there's no jank even on long strings. Drop it into signup flows, secret-reveal hero copy, account dashboards, or marketing sections about privacy and encryption.

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 password-text text effect into my project

FAQ

Was this page helpful?

Sign in to leave feedback.