Component libraryText reveal
Components/Essentials

Text reveal

Pro

A semantic text entrance with finite word, line, and simple visual staging.

npx shadcn@latest add @tidal-pro/text-reveal
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/text-reveal

Import components/ui/tidal.css, components/ui/text-reveal.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

TidalTextReveal owns a caller-selected semantic tag (as) and plain string children. mode selects words, lines, or one simple visual reveal; active=false renders the final state; replayKey intentionally remounts only the aria-hidden visual layer for a finite replay. durationMs, staggerMs, and startDelayMs are bounded before they reach CSS. The root keeps a visually hidden copy of the original text when caller labelling is absent, while aria-label or aria-labelledby remains authoritative when supplied. Native HTMLElement attributes and refs are forwarded. Motion is finite, reduced motion renders the readable final state, and the component performs no observation, request, storage, timer, or perpetual animation.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.