shadcn.io is not affiliated with official shadcn/ui
Skeleton examples · Card
Card with Badge and Tags Skeleton for React
A bordered card placeholder with two pill tags, a title, two lines of text and two buttons.
A loading card for tagged content: two pill-shaped tags on top, a title, two lines of text and two button-sized blocks at the bottom. Each block is a Skeleton; rounded-full turns the tags into pills.
Use it for posts with categories, products with labels or events with tags.
Preview
Installation
FAQ
What is the card frame?
flex w-full max-w-sm flex-col gap-3 rounded-md border p-4. Tags, title, two text lines and two buttons stack in that order.
How are the tags drawn?
A flex items-center gap-2 row holds h-5 w-16 rounded-full and h-5 w-20 rounded-full. rounded-full replaces the radius Skeleton gets from your style.
What sizes are the title and the text?
The title is h-6 w-3/4. The two lines under it are h-4 w-full and h-4 w-5/6.
How are the two buttons shown?
A mt-2 flex gap-2 row holds h-8 w-20 and h-8 w-24. Match those widths to the real button labels.
Related
- Card with Avatar and Content SkeletonA bordered card placeholder with a round
- Vertical Card Layout SkeletonA vertical card placeholder with an
- Badge with Text (Standard)A default badge with a short label for a
- Simple Card with Image and Text SkeletonA card placeholder with a wide image
- Button with Text (Standard)The one filled action
- Standard CardA basic card with a title, a description