shadcn.io is not affiliated with official shadcn/ui
Skeleton examples · Card
Vertical Card Layout Skeleton for React
A vertical card placeholder with an edge-to-edge image, three lines of text, a price and a button.
A loading product card: an image block running to the card's edges, a title and three lines of text, then a price and a button on one row. The image Skeleton drops its radius, and the card's border and overflow-hidden clip it.
Use it for store listings, catalogs or recipe cards.
Preview
Installation
FAQ
How is the card clipped?
flex w-full max-w-sm flex-col gap-3 overflow-hidden rounded-md border. overflow-hidden clips the image to the card's corners.
Why does the image use rounded-none?
h-40 w-full rounded-none clears the style's default radius so the bar runs edge to edge. The card's rounded-md and overflow-hidden clip it.
What is in the text block?
flex flex-col gap-3 p-4. The title is h-5 w-2/3. Three h-4 lines follow at w-full, w-5/6 and w-4/6.
How are the price and the button placed?
mt-2 flex items-center justify-between. The price is h-6 w-20. The button is h-9 w-24.
Related
- Simple Card with Image and Text SkeletonA card placeholder with a wide image
- Horizontal Card Layout SkeletonA horizontal card placeholder with a
- Card with Badge and Tags SkeletonA bordered card placeholder with two pill
- Standard CardA basic card with a title, a description
- Simple List Items SkeletonFive list rows, each with a small icon
- Button with Text (Standard)The one filled action