Skeleton
Use to show a placeholder while content is loading.
Playground
Installation
Install in any React + Tailwind project:
$npx shadcn@latest add https://twigs.globirdenergy.com.au/r/skeleton.json
Source
The exact file the registry serves to consumers.
import { cn } from '@/lib/utils';
function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
return <div className={cn('animate-pulse rounded-md bg-secondary', className)} {...props} />;
}
export { Skeleton };