Text Reveal
Fade in text as you scroll down the page.
MagicMagicUIUIwillwillchangechangethethewaywayyouyoudesign.design.
import { TextReveal } from '@/registry/magicui/text-reveal'
export function TextRevealDemo() { return <TextReveal>Magic UI will change the way you design.</TextReveal>}Installation
Section titled “Installation”pnpm dlx shadcn@latest add @magicui-solid/text-revealbunx shadcn@latest add @magicui-solid/text-revealyarn dlx shadcn@latest add @magicui-solid/text-revealnpx shadcn@latest add @magicui-solid/text-revealImport
Section titled “Import”import { TextReveal } from '@/components/magicui/text-reveal'<TextReveal>Magic UI will change the way you design.</TextReveal>| Prop | Type | Default | Description |
|---|---|---|---|
children |
string |
Required | The text content to reveal |
class |
string |
- |
Additional class for the container |
Original:
magicui.design/docs/components/text-reveal