This component no longer exists. It was in prompt-kit’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Text Shimmer
prompt-kit/text-shimmerRemovedComponent
A component for displaying a shimmer effect on text, perfect for loading states or highlighting text.
Live preview
live · rendered by the registry
Rendered by prompt-kit on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ibelick/prompt-kit/HEAD/public/c/text-shimmer.jsonSource
1"use client"23import { cn } from "@/lib/utils"45export type TextShimmerProps = {6 as?: string7 duration?: number8 spread?: number9 children: React.ReactNode10} & React.HTMLAttributes<HTMLElement>1112export function TextShimmer({13 as = "span",14 className,15 duration = 4,16 spread = 20,17 children,18 ...props19}: TextShimmerProps) {20 const dynamicSpread = Math.min(Math.max(spread, 5), 45)21 const Component = as as React.ElementType2223 return (24 <Component25 className={cn(26 "bg-size-[200%_auto] bg-clip-text font-medium text-transparent",27 "animate-[shimmer_4s_infinite_linear]",28 className29 )}30 style={{31 backgroundImage: `linear-gradient(to right, var(--muted-foreground) ${50 - dynamicSpread}%, var(--foreground) 50%, var(--muted-foreground) ${50 + dynamicSpread}%)`,32 animationDuration: `${duration}s`,33 }}34 {...props}35 >36 {children}37 </Component>38 )39}
Files it writes
More from prompt-kit
All 12 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Chat Containerchat-container | prompt-kit | Components | Free | 1 dep | |
| Code Blockcode-block | prompt-kit | Components | Free | 1 dep | |
| File Uploadfile-upload | prompt-kit | Components | Free | no deps | |
| Jsx Previewjsx-preview | prompt-kit | Components | Free | 1 dep | |
| Loaderloader | prompt-kit | Components | Free | no deps | |
| Markdownmarkdown | prompt-kit | Components | Free | 4 deps · 2 files | |
| Messagemessage | prompt-kit | Components | Free | 5 deps · 3 files | |
| Prompt Inputprompt-input | prompt-kit | Components | Free | no deps |
