skeleton
loading-ui/skeletonFreeComponent
@loading-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by @loading-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://loading-ui.com/r/skeleton.jsonSource
1import { cn } from "@/lib/utils";23function Skeleton({ className, style, ...props }: React.ComponentProps<"div">) {4 return (5 <>6 <style>{`7 @keyframes loading-ui-skeleton-pulse {8 50% {9 opacity: 0.5;10 }11 }12 `}</style>13 <div14 data-slot="skeleton"15 className={cn("bg-muted rounded-md", className)}16 style={{17 animationName: "loading-ui-skeleton-pulse",18 animationDuration: "var(--duration, 2s)",19 animationTimingFunction: "cubic-bezier(0.4, 0, 0.6, 1)",20 animationIterationCount: "infinite",21 ...style,22 }}23 {...props}24 />25 </>26 );27}2829export { Skeleton };
Files it writes
More from @loading-ui
All 50 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordion-loaderaccordion-loader | @loading-ui | Components | Free | no deps | |
| analyzing-imageanalyzing-image | @loading-ui | Components | Free | 1 dep | |
| arcarc | @loading-ui | Components | Free | no deps | |
| barsbars | @loading-ui | Components | Free | no deps | |
| bobbing-dotsbobbing-dots | @loading-ui | Components | Free | 1 dep | |
| bouncing-dotsbouncing-dots | @loading-ui | Components | Free | no deps | |
| classicclassic | @loading-ui | Components | Free | no deps | |
| clock-ringclock-ring | @loading-ui | Components | Free | no deps |
