shadcn.io is not affiliated with official shadcn/ui
Skeleton examples · Content
Article Preview Skeleton for React
An article preview placeholder with an author row, a title, three lines of text and three tag pills.
A loading card for an article in a feed: the author's avatar, name and date, the title, three lines of excerpt and three tag pills. Every block is a Skeleton inside a bordered frame.
Use it for blog feeds and news lists, sized to the real preview so the cards don't jump when the posts arrive.
Preview
Installation
FAQ
What does each bar stand in for?
A size-10 rounded-full circle with an h-4 w-24 line and an h-3 w-32 line is the author. h-6 w-3/4 is the title, three h-4 bars are the excerpt, and three rounded-full pills are the tags.
What classes frame the preview?
The wrapper is flex w-full max-w-2xl flex-col gap-4 rounded-md border p-6. The author row is flex items-center gap-3, and the two name lines stack with gap-2.
Why is the last excerpt line shorter?
The first two excerpt bars are h-4 w-full. The third is h-4 w-2/3, so the block reads as a paragraph that ends early. Match those widths to the real excerpt so the card does not jump.
How are the tag pills built?
A row with flex gap-2 pt-2 holds three Skeletons: h-6 w-16, h-6 w-20 and h-6 w-24, each with rounded-full. rounded-full replaces the radius Skeleton gets from your style.
Related
- Blog Post SkeletonA blog post placeholder with a large
- Comment Thread SkeletonThree comment placeholders, each with an
- Standard CardA basic card with a title, a description
- Simple List Items SkeletonFive list rows, each with a small icon
- Avatar StandardA round avatar with a profile picture and
- Badge with Text (Standard)A default badge with a short label for a