Skeleton
Live preview from the library's source
Install
From shadcn/ui
npx shadcn@latest add https://ui.shadcn.com/r/styles/new-york-v4/skeleton.jsonFrom this collection
npx shadcn@latest add https://allcomps.vercel.app/r/ui-shadcn--skeleton.jsonCode
import { cn } from "cn"
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
className={cn("animate-pulse rounded-md bg-accent", className)}
{...props}
/>
)
}
export { Skeleton }
Other loaders & skeletons
The same kind of component from the other libraries in the collection.