Rendyn

Component library

189 components

Interaction

Text Reveal

Text Reveal ties a text treatment to scrolling through its containing region.

Interactive exampleReact Tailwind CSS

Practical React example

Reveal a short piece of supporting copy as someone moves through a section.

Before you copy and paste

Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/text-reveal.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: motion.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Reveal a short piece of supporting copy as someone moves through a section

// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';

import { TextReveal } from "@/components/magicui/text-reveal"

export function ComponentExample() {
  return (
    <TextReveal>Magic UI will change the way you design.</TextReveal>
  );
}

Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.

Use it for supplementary display copy and budget for the source’s scroll-height requirements. Keep a static version of essential content available where appropriate.

Customization

TextRevealProps.children
Required; string.
WordProps.children
Required; ReactNode.
WordProps.progress
Required; MotionValue<number>.
WordProps.range
Required; [number, number].

Integration notes

  • Scroll animation does not establish that text has been read.
  • Check printing, reduced motion and layouts where the section is shorter than the viewport.

Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP