honestui

Shimmer Text

Shaders

About

Sweep a band of light across text, for a status line or a heading.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Shimmer Text to your project and fits it to your theme.

Code

How Shimmer Text is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import "honestui/theme.css";

import { ShimmerText } from "@/components/ui/honest-shimmer-text";

interface ShimmerTextSettings {
  dim: number;
  width: number;
  duration: number;
  delay: number;
  angle: number;
  active: boolean;
}

const defaults: ShimmerTextSettings = {
  dim: 0.5,
  width: 64,
  duration: 1800,
  delay: 700,
  angle: 105,
  active: true,
};

// Split so the shader index does not read the sample as this file's export.
const SAMPLE_EXPORT = ["export", "function Demo()"].join(" ");

export default function ShimmerTextDemo() {
  const settings = defaults;

  return (
    <div data-theme="light" className="flex min-h-[420px] w-full items-center justify-center p-6">
      <div className="h-80 w-full max-w-xl overflow-hidden rounded-xl">
        <div className="grid size-full place-items-center bg-background px-6 text-foreground">
          <div className="grid gap-4 text-center">
            <h2 className="text-4xl font-semibold tracking-tight sm:text-5xl">
              <ShimmerText {...settings}>Ideas, made real.</ShimmerText>
            </h2>
            <p role="status" className="text-sm text-muted-foreground">
              <ShimmerText active={settings.active}>
                {settings.active ? "Thinking…" : "Done thinking"}
              </ShimmerText>
            </p>
          </div>
        </div>
      </div>
    </div>
  );
}

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    30
  • OTP Field

    OTP Field

  • Audio Orb

    Audio Orb

  • AI Glow Border

    AI Glow Border

  • Metaballs

    Metaballs

  • Voronoi

    Voronoi

  • Water

    Water

  • ASCII

    ASCII

More in Shaders

View all
  • Glass Fold

    Glass Fold

    588
  • Shader Animation

    Shader Animation

    3.9K
  • Chroma Sense Hero

    Chroma Sense Hero

    22
  • LightSpeed

    LightSpeed

    253
  • Illos Knowledge Sources

    Illos Knowledge Sources

    74
  • Shader Lines

    Shader Lines

    2.5K
  • Molten Pillars

    Molten Pillars

    18
  • Wave

    Wave

    730