VibeUI
ComponentsDocs
VibeUI

Components with taste, that you own. Copy the source, retint the tokens, keep every line.

Library

  • All components
  • Signature pieces
  • Text effects
  • Footers

Docs

  • Introduction
  • Installation
  • Theming
  • CLI

Project

  • GitHub
  • Agents and MCP
  • Issues
  • MIT license
© 2026 VibeUI · MIT licensed
  1. Components
  2. Text effects
  3. Gradient Text

Gradient Text

Text filled with an ink-to-accent gradient.

Text effectsServer-safe

Quiet gradient ink

Install

bash
npx @agents-npm-packages/vibeui add gradient-text --dir ./src/components/ui

Import

tsx
import { GradientText } from "@/components/ui/gradient-text"

API

Generated from the component's TypeScript types, so it always matches the source. * marks a required prop.

<GradientText>

PropTypeDefaultDescription
children*ReactNode—Content rendered inside the component.
classNamestring—Extra classes, merged with the component's own.

Source

src/components/ui/gradient-text.tsx
import { cn } from "@/lib/utils";

/** Text filled with an ink-to-accent gradient. */
export function GradientText({
  children,
  className,
}: {
  children: React.ReactNode;
  className?: string;
}) {
  return (
    <span
      className={cn(
        "bg-[linear-gradient(100deg,var(--ink)_0%,var(--accent)_55%,var(--ink)_110%)] bg-clip-text text-transparent",
        className,
      )}
    >
      {children}
    </span>
  );
}

Exports GradientText. Peer dependencies: clsx, tailwind-merge.

PreviousGlitch TextNextHighlight Text