A condensed headline revealed five ways: letters roll out of their cells, lines rise together, a rule traces and wipes each word open, words narrow from wide, or glyphs decode left to right.
pnpm dlx shadcn@latest add @beautiful-ui-pro/text-revealNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
import { TextReveal } from "@/components/ui/notchset/text-reveal";
<TextReveal lines={[["ATLAS", "3", "FLASH"], ["IS", "LIVE"]]} mode="roll" trigger="inView" />lines–
string[][]Explicit lines of words.
mode–
"roll" | "lines" | "trace" | "stretch" | "decode"How it arrives.
trigger–
"mount" | "inView" | "manual"When it plays.
replayKey–
numberChange it to replay.
as–
"h1" | "h2" | …The element (default h2).
components/ui/notchset/text-reveal.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.