registry:component

Skeleton

v1.0.0ga

Loading placeholder primitive for async content states.

Registry Endpoint
Open JSON

https://registry.aavya.com/r/ui-skeleton.json

npx shadcn@latest add https://registry.aavya.com/r/ui-skeleton.json

Live Preview
Usage Snippet
import Skeleton from '@/components/ui/skeleton.tsx'

export default function Example() {
  return (
    <div className="p-6">
      <Skeleton />
    </div>
  )
}
Source Preview
import { cn } from '@/lib/utils'

function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
  return <div data-slot='skeleton' className={cn('bg-accent animate-pulse rounded-md', className)} {...props} />
}

export { Skeleton }