Skeleton

Placeholder shown while content loads.

Installation

pnpm dlx apen-ui@latest add skeleton

Manual installation

Copy the source into components/ui/skeleton.tsx.

components/ui/skeleton.tsx
import * as React from "react"

import { cn } from "@/lib/utils"

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

export { Skeleton }