Rendyn

Component library

189 components

Interaction

Animated Gradient Text

Animated Gradient Text wraps child content in an animated color treatment.

Interactive exampleReact Tailwind CSS

Practical React example

Accent a short message with a moving gradient while preserving the surrounding text’s hierarchy.

Before you copy and paste

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

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

Accent a short message with a moving gradient while preserving the surrounding text’s hierarchy

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

import { AnimatedGradientText } from "@/components/magicui/animated-gradient-text"

export function ComponentExample() {
  return (
    <AnimatedGradientText>Animated Gradient Text</AnimatedGradientText>
  );
}

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

Use a compact phrase and include the returned CSS or style setup supplied by the component. Match the color range to the actual background.

Customization

AnimatedGradientTextProps.speed
Optional; number.
AnimatedGradientTextProps.colorFrom
Optional; string.
AnimatedGradientTextProps.colorTo
Optional; string.

Integration notes

  • A gradient should not be the only indication that text is a link or selected item.
  • Check a static fallback and visible keyboard focus if the text contains a link.

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