BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/agent-elements/text-shimmer

text-shimmer

agent-elements/text-shimmer
FreeComponent

agent-elements publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by agent-elements on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://agent-elements.21st.dev/r/text-shimmer.json

Source

registry/agent-elements/components/text-shimmer.tsxagent-elements.21st.dev/r/text-shimmer.json
1import React from "react";
2import { cn } from "./utils/cn";
3
4export type TextShimmerProps = {
5 children: React.ReactNode;
6 as?: React.ElementType;
7 className?: string;
8 duration?: number;
9 spread?: number;
10 delay?: number;
11};
12
13function TextShimmerComponent({
14 children,
15 as: Component = "p",
16 className,
17 duration = 2,
18 spread = 100,
19 delay = 0,
20}: TextShimmerProps) {
21 const style = {
22 "--an-shimmer-duration": `${duration}s`,
23 "--an-shimmer-spread": `${spread}px`,
24 animationDelay: delay > 0 ? `${delay}s` : undefined,
25 animationDuration: `${duration}s`,
26 animationIterationCount: "infinite",
27 animationTimingFunction: "linear",
28 } as React.CSSProperties;
29
30 return (
31 <Component
32 className={cn("an-text-shimmer", "an-text-shimmer--active", className)}
33 style={style}
34 >
35 {children}
36 </Component>
37 );
38}
39
40export const TextShimmer = React.memo(TextShimmerComponent);

Facts

Registry
agent-elements
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on agent-elements agent-elements.21st.dev Raw registry item This item as JSON

More from agent-elements

All 25 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
agent-chatagent-chatagent-elementsComponentsFreeno deps
attachment-buttonattachment-buttonagent-elementsComponentsFreeno deps
bash-toolbash-toolagent-elementsComponentsFreeno deps
edit-tooledit-toolagent-elementsComponentsFreeno deps
error-messageerror-messageagent-elementsComponentsFreeno deps
file-attachmentfile-attachmentagent-elementsComponentsFreeno deps
generic-toolgeneric-toolagent-elementsComponentsFreeno deps
input-barinput-baragent-elementsComponentsFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex