Command Palette

Search for a command to run...

Components
Next

Blur Shimmer Text

A text component that loops phrases with a horizontal blur shimmer.

Loading...
import { BlurShimmerText } from "@/components/blur-shimmer-text";
 
export default function BlurShimmerTextDemo() {
  return (
    <BlurShimmerText
      texts={["Full-Stack Developer", "Design Engineer", "Open to Work"]}
      className="text-center text-2xl font-medium"
    />
  );
}

Installation

bunx --bun shadcn@latest add "https://www.kushaj.in/r/blur-shimmer-text.json"

Usage

import { BlurShimmerText } from "@/components/blur-shimmer-text";
<BlurShimmerText texts={["Text 1", "Text 2"]} />

API Reference

PropTypeDefaultDescription
textsstring[]-Phrases for the blur-shimmer-text loop.
asmotion.p | motion.span | motion.code | motion.h1 | motion.h2 | motion.h3motion.pElement for the active phrase.
classNamestring-Classes for the blur-shimmer-text root.
intervalnumber2Seconds before switching phrases.
blurnumber6Shimmer blur in pixels.
transitionTransition{ duration: 0.5 }Per-character motion transition.
variantsVariants-Custom variants; overrides blur.