shadcn.io is not affiliated with official shadcn/ui
Skeleton examples · Card
Horizontal Card Layout Skeleton for React
A horizontal card placeholder with a square image beside a title, two lines of text and two tags.
A loading card laid out in a row: a square image block on the start side, and a column with a title, two lines of text and two tags pushed to the bottom. The blocks are Skeleton elements in a flex row.
Use it for search results, news lists or playlists, where a row shows more per screen than a stacked card.
Preview
Installation
FAQ
How is the card split?
flex w-full max-w-lg gap-4 rounded-md border p-4. A size-24 shrink-0 image sits beside a flex-1 column with gap-2.
What is in the text column?
An h-5 w-3/4 title, then h-4 w-full and h-4 w-5/6. The shorter line reads as the end of the description.
Where do the two tags sit?
mt-auto flex items-center gap-2 pushes them to the bottom of the column. The bars are h-6 w-16 and h-6 w-20.
Why is the image shrink-0?
shrink-0 keeps the size-24 block square while the text column is flex-1. The image keeps the style's default radius.
Related
- Vertical Card Layout SkeletonA vertical card placeholder with an
- Simple Card with Image and Text SkeletonA card placeholder with a wide image
- Card with Avatar and Content SkeletonA bordered card placeholder with a round
- Simple List Items SkeletonFive list rows, each with a small icon
- Standard CardA basic card with a title, a description
- Badge with Text (Standard)A default badge with a short label for a