shadcn.io is not affiliated with official shadcn/ui
Skeleton examples · List
List with Avatars Skeleton for React
Four list rows, each with a round avatar and two lines of text.
A loading list of people: each row is a round avatar block, a longer line for the name and a shorter one under it. The avatar doesn't shrink and the text column fills the rest, so the rows keep their shape at any width. Every block is a Skeleton.
Use it for contacts, members or a feed while the people load.
Preview
Installation
FAQ
How many rows are in the list?
Four. ROWS maps row-1 through row-4 into a max-w-md column with gap-4.
What is in each row?
flex items-center gap-3: a size-10 shrink-0 rounded-full circle and a flex-1 column with gap-2. The lines are h-4 w-3/4 and h-3 w-1/2.
Which avatar size does size-10 match?
size-10 is the large Avatar, size="lg". shrink-0 keeps that circle from squeezing against the flex-1 text.
Related
- Simple List Items SkeletonFive list rows, each with a small icon
- List with Icons SkeletonFive bordered list rows with a leading
- Multi-line List Items SkeletonThree bordered list items with a title
- Card with Avatar and Content SkeletonA bordered card placeholder with a round
- Avatar StandardA round avatar with a profile picture and
- Hierarchical List Items SkeletonA tree placeholder of icon and label