BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ratneshc/blur-shimmer-text

Blur Shimmer Text

ratneshc/blur-shimmer-text
FreeComponent

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

Install it

npx shadcn@latest add https://ratneshc.com/r/blur-shimmer-text.json

Source

src/registry/components/blur-shimmer-text/blur-shimmer-text.tsxratneshc.com/r/blur-shimmer-text.json
1"use client";
2
3import * as React from "react";
4import type { Transition, Variants } from "motion/react";
5import { AnimatePresence, motion } from "motion/react";
6
7import { cn } from "@/lib/utils";
8
9type MotionElement =
10 | typeof motion.p
11 | typeof motion.span
12 | typeof motion.code
13 | typeof motion.h1
14 | typeof motion.h2
15 | typeof motion.h3;
16
17export type BlurShimmerTextProps = {
18 /** Element to render as.
19 * @defaultValue motion.p */
20 as?: MotionElement;
21 /** Additional class names. */
22 className?: string;
23 /** Seconds each text is visible before switching.
24 * @defaultValue 2 */
25 interval?: number;
26 /** Blur radius in pixels at the peak of the shimmer effect.
27 * @defaultValue 6 */
28 blur?: number;
29 /** Motion transition for the blur sweep. */
30 transition?: Transition;
31 /** Motion variants for each character. Overrides the blur prop. */
32 variants?: Variants;
33 /** List of phrases to loop through. */
34 texts: string[];
35};
36
37export function BlurShimmerText({
38 as = motion.p,
39 className,
40 interval = 2,
41 blur = 6,
42 transition = { duration: 0.5 },
43 variants,
44 texts,
45}: BlurShimmerTextProps) {
46 const [currentIndex, setCurrentIndex] = React.useState(0);
47 const Component = as as typeof motion.p;
48
49 const resolvedVariants: Variants = variants ?? {
50 initial: { filter: `blur(${blur}px)`, opacity: 0 },
51 animate: { filter: "blur(0px)", opacity: 1 },
52 exit: { filter: `blur(${blur}px)`, opacity: 0 },
53 };
54
55 React.useEffect(() => {
56 if (!texts || texts.length === 0) return;
57
58 const timeout = setInterval(() => {
59 setCurrentIndex((prev) => (prev + 1) % texts.length);
60 }, interval * 1000);
61
62 return () => clearInterval(timeout);
63 }, [texts, interval]);
64
65 if (!texts || texts.length === 0) return null;
66
67 const duration = (transition.duration as number) || 0.6;
68
69 return (
70 <div className={cn("inline-grid", className)}>
71 {texts.map((text, index) => (
72 <span
73 key={index}
74 className="invisible col-start-1 row-start-1 block whitespace-nowrap"
75 aria-hidden="true"
76 >
77 {text.split("").map((char, i) => (
78 <span key={i} className="inline-block whitespace-pre">
79 {char}
80 </span>
81 ))}
82 </span>
83 ))}
84 <AnimatePresence>
85 <Component
86 key={currentIndex}
87 className="col-start-1 row-start-1 block whitespace-nowrap"
88 initial="initial"
89 animate="animate"
90 exit="exit"
91// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • src/registry/components/blur-shimmer-text/blur-shimmer-text.tsx

Facts

Registry
ratneshc
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ratneshc.com ratneshchipre/ratneshc.com on GitHub Raw registry item This item as JSON

More from ratneshc

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Copy Buttoncopy-buttonratneshcComponentsFree1 dep
Perspective Tiltperspective-tiltratneshcComponentsFree1 dep
Stars Travelstars-travelratneshcComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex