Glass Skeleton
washiveil/glass-skeletonFreeComponent
Loading placeholder — a shimmering veil.
Install it
npx shadcn@latest add https://washiveil.alexchih.com/r/glass-skeleton.jsonSource
1import { cn } from '@/lib/utils';23export function GlassSkeleton({ className, ...props }: React.ComponentProps<'div'>) {4 return (5 <>6 <div7 className={cn('wv-shimmer rounded-xl bg-foreground/6 relative overflow-hidden', className)}8 {...props}9 />10 <style11 dangerouslySetInnerHTML={{12 __html: `@media(prefers-reduced-motion:no-preference){@keyframes wv-shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.wv-shimmer::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent);animation:wv-shimmer 1.5s infinite}:is(.dark,.dark *) .wv-shimmer::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,0.06),transparent)}}`,13 }}14 />15 </>16 );17}
What it pulls in
Other registry items
Files it writes
More from washiveil
All 58 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Ambient Fieldambient-field | washiveil | Components | Free | no deps | |
| Chipchip | washiveil | Components | Free | 1 dep | |
| Code Badgecode-badge | washiveil | Components | Free | no deps | |
| Glass Accordionglass-accordion | washiveil | Components | Free | 2 deps | |
| Glass Alertglass-alert | washiveil | Components | Free | 1 dep | |
| Glass Alert Dialogglass-alert-dialog | washiveil | Components | Free | 1 dep | |
| Glass Aspect Ratioglass-aspect-ratio | washiveil | Components | Free | 1 dep | |
| Glass Avatarglass-avatar | washiveil | Components | Free | 1 dep |
