DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Avatar
MarkdownPro 10 blocks

Shadcn Avatar

Browse 35 production-ready shadcn avatar components for user profiles, team rosters, and presence indicators. Avatar is compatible with Radix UI and Base UI stacks and fully aligned with Shadcn Create styling.

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

When to use

  • Profile photos with initials or a user icon that stand in when the picture is missing or fails
  • Presence dots, verified marks and number badges pinned to the corners of a person's photo
  • Overlapping team stacks, social proof rows and user chips inside buttons or account triggers

When not to use

  • An account panel opened from a trigger, with the name, email and grouped actions: use the Dropdown Menu component
  • A full account settings page where a person edits photo, name and details: use the Profile blocks
  • A workspace members directory with roles, invites and access status: use the Users blocks

Agent notes

  • Initials inside AvatarFallback are typed by hand in every example; derive them from each person's name rather than copying the sample letters
  • A square Avatar needs the same radius on AvatarImage, AvatarFallback and its after pseudo element border, since all 3 default to round
Markdownhttps://reui.io/components/avatar.md
MCPget_component("avatar")
Installnpx shadcn@latest add avatar
Full index for agents:llms.txtReUI MCP setup

Shadcn Avatar: Display User Profiles & Initials

Shadcn Avatar is an image placeholder with fallback initials or icons, displaying when user photos fail to load or are unavailable. It follows Radix UI composition conventions and Base UI-style unstyled flexibility, with full compatibility for Shadcn Create styling.

It shows a round or square image container with automatic fallback to initials, labels, or icons, gracefully handling missing or failed images without breaking the layout.

ReUI lists avatar components inside team directories, comment threads, user tables, and profile cards so you evaluate sizing, grouping, and presence indicators next to realistic content. The sections below explain what the component is, why teams use it, key features, and integration ideas.

What is Shadcn Avatar?

An avatar component displays a user's photo or initials in a fixed-size circle or square. Shadcn Avatar follows Radix UI composition with an AvatarImage (for the photo) and AvatarFallback (for initials or icon), so the UI stays stable if the image fails or loads slowly.

Components here show single avatars in profiles, grouped avatars for teams (stacked or in a grid), presence indicators (green dot for online), and fallback initials extracted from names. They help you choose a size, decide on fallback content, and see how avatars pair with other components.

Why Use Shadcn Avatar?

User photos humanize interfaces and help identify people at a glance. Avatars are essential in team tools, comment sections, and collaborative apps, but image loading failures and missing photos need graceful fallbacks to avoid blank spaces.

Real team rosters, comment threads, and profile cards on this page show how avatars integrate with names, roles, and status indicators.

Shadcn Avatar Features

  • Image Fallback. Shows initials or an icon if the image fails to load or is not provided, so the UI never breaks.
  • Size Variants. Supports multiple sizes (xs, sm, md, lg, xl) via Tailwind classes for consistency across lists, cards, and density levels.
  • Status Indicators. Add a small dot or badge (using Shadcn Badge) to show online status, presence, or role without extra space.
  • Grouped Avatars. Stack or overlap multiple avatars with a count indicator (+3) when space is limited, common in team or group contexts.
  • Initials Extraction. Derive fallback initials from a name string in the client, or pass explicit initials for custom formatting.

Integrating with Other Components

Pair avatars with text (names, roles) inside a Shadcn Card or list item for user profiles. Use Shadcn Badge to show roles, status, or organization next to the avatar.

Combine avatars with Shadcn Popover to show detailed profiles on hover. Use a group of avatars with a Shadcn Dialog to show full team rosters when space is limited.

In comment threads, pair avatars with Shadcn Textarea for input and Shadcn Button to submit. Use avatars in Shadcn Table columns to identify users in data rows, styled with Shadcn Skeleton as a loading state.

Profile Blocks in ReUI Pro

The free examples above pair with 10 production ready profile blocks in ReUI Pro, complete sections built on the same primitives and ready to copy into your app.

  • Profile (10 blocks)User profile pages with avatars, bios, activity feeds, and account management sections.

Browse all Application blocks

Frequently Asked Questions

What should I show as an avatar fallback if the image is missing?

Show the user's initials (first + last letter) extracted from their name. If a name is unavailable, use a generic icon (User icon from Lucide) or a colored background with the first letter.

How do I handle image loading errors gracefully?

The AvatarImage component from Radix UI automatically shows the AvatarFallback when the image fails to load. No extra code needed; it's built in.

Can I add a status indicator or badge to an avatar?

Yes. Use absolute positioning to place a Shadcn Badge or small dot in the bottom-right corner of the avatar. Pair with a class like 'absolute bottom-0 right-0'.

How should I display multiple avatars in a group?

Use CSS transforms (overlap with negative margin or transform: translateX) to stack avatars on top of each other, or show them side-by-side and add a +N indicator when space is limited.

What size should avatars be in different contexts?

Lists and tables: sm (32px); comments and mentions: md (40px); profile pages: lg or xl (64px+). Match size to surrounding text and interaction density.

Can I make avatars clickable to open a profile?

Yes. Wrap the Avatar in a button or link. Use cursor-pointer and add a hover state (opacity, shadow) to signal interactivity.

How are ReUI avatar components different from a standalone component demo?

They show avatars inside team rosters, comment threads, and user lists so you see sizing, grouping, and how presence indicators pair with names and roles.
Previous12 Shadcn Autocomplete Components
Next25 Shadcn Badge Components

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K

Basic avatar

Avatar with fallback

Avatars with different sizes

Avatars with different border radiuses

Avatars with custom sizes

Avatar with an online status badge

Avatar with badge icon

Avatar with different badge positions

Avatar with different badge positions

Basic avatar group

Avatar group with numerical count

Avatar group with an icon count

Avatar with a distinct border ring

Avatar with light background color fallback

Avatar with a solid background color fallback

Avatar with user details and badge

Avatar with grayscale image filter

Avatar group with online status on one

Avatar inside small outline button

Avatar social proof with text label

Compact social proof with initials

Avatar group with hover tooltips and lift effect

Avatar group with hover effect

Avatar group with hover effect and tooltips

Avatar group with numerical count

Pilled small outline button with avatar

Pilled small button with avatar

Avatar inside an empty state example

Avatar group with icon count and button

Avatar with loading state demonstration

Avatar with custom badge

Avatar with ring animation

Avatar with gradient animated ring

Avatar with multiple badges

Compact avatar dropdown menu