Skip to content

shadcn.io is an independent project built on shadcn/ui

Free

Profile Card Skeleton for Ark UI

A profile card placeholder with an avatar, a name, two bio lines and a row of three stats.

An avatar sits beside two lines for the name, then two lines of bio, then three stats in a row under a top border.

Use it for a directory card that shows counts such as followers. If the profile is missing rather than loading, say so with Empty. In React, Ark UI does not load those counts.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
Use email insteadNo credit card

Anatomy

Skeleton anatomy: avatar, title, description, media

Usage

<div className="flex w-full max-w-sm flex-col gap-4 rounded-md border p-6">
  <div className="flex items-center gap-4">
    <Skeleton className="size-16 shrink-0 rounded-full" />
    <div className="flex flex-1 flex-col gap-2">
      <Skeleton className="h-5 w-32" />
      <Skeleton className="h-4 w-24" />
    </div>
  </div>
  <Skeleton className="h-4 w-full" />
  <Skeleton className="h-4 w-5/6" />
  <div className="flex gap-4 border-t pt-2">
    <div className="flex flex-1 flex-col items-center gap-2">
      <Skeleton className="h-6 w-12" />
      <Skeleton className="h-3 w-16" />
    </div>
    <div className="flex flex-1 flex-col items-center gap-2">
      <Skeleton className="h-6 w-12" />
      <Skeleton className="h-3 w-16" />
    </div>
    <div className="flex flex-1 flex-col items-center gap-2">
      <Skeleton className="h-6 w-12" />
      <Skeleton className="h-3 w-16" />
    </div>
  </div>
</div>

FAQ

What wraps the profile card?

flex w-full max-w-sm flex-col gap-4 rounded-md border p-6. Header, two bio lines, then a stats row.

How is the header built?

flex items-center gap-4 holds a size-16 shrink-0 rounded-full circle and a flex-1 column. The name is h-5 w-32. The line under it is h-4 w-24.

What are the two lines under the header?

h-4 w-full and h-4 w-5/6. The shorter line reads as the end of a short bio.

How are the three stats laid out?

flex gap-4 border-t pt-2. Each stat is flex flex-1 flex-col items-center gap-2, with h-6 w-12 over h-3 w-16.

What makes the avatar a circle?

rounded-full on that Skeleton. shrink-0 keeps the size-16 circle from squeezing. The other bars keep the style's default radius.

Should the profile bars be hidden?

Set aria-hidden on each Skeleton when nearby text already says the profile is loading. The pulse is decorative.

API Reference

Skeleton

No extra props in this demo. The rest is on the Skeleton page.