Avatar Component Prompts

Browse 6 avatar patterns — photo, Notion-style illustrated, initials fallback, presence badge, stacked group and uploader. Copy a Tailwind + shadcn-oriented prompt, then open MeDo or your preferred AI editor to build it.

Describe an Avatar Pattern, Copy a Prompt

Edit the prompt here, then copy it into the tool you use.
Open MeDo

Start with a proven prompt

6 Avatar Templates

Real React + Tailwind previews. Click any template to see the exact prompt that generates it.

Open MeDo
Image + Fallback
Maya RahmanLeo CardosoMD

Photo, illustrated avatar, or initials when the image 404s.

View Prompt
BasicImage + Fallback

Photo when it loads, initials when it doesn't. The avatar every app needs first.

Presence Badge
Maya RahmanOnline
Kenji SatoAway
CTBusy
DMOffline
View Prompt
StatusPresence Badge

Online, away, busy, offline — a presence dot anchored to the avatar's edge.

Stacked + Overflow
Maya RahmanKenji SatoAlicia BennettRohan Verma+12
Invite

16 collaborators on Q3 Launch

View Prompt
GroupStacked + Overflow

Overlapping avatar stack with a +N overflow chip. For teams, assignees, collaborators.

Scale + Shape
MDxs
MDsm
MDmd
MDlg
MDxl
SQRC
View Prompt
Sizes & ShapesScale System

xs through xl on one type scale, plus circle, squircle and rounded-square variants.

Editable
Kenji Sato
Profile PhotoPNG or JPG, up to 2 MB
UploadRemove
View Prompt
UploaderEditable

Avatar with a camera badge, upload button and file constraints. For settings pages.

Avatar + Meta
Leo Cardoso
Leo Cardoso
Product Design · Owner
Manage
Aiko Nakamura
Aiko Nakamura
Engineering · Editor
Manage
Nia Okafor
Nia Okafor
Marketing · Viewer
Manage
View Prompt
Profile RowAvatar + Meta

Avatar, name, verification tick and role — the row that fills tables and member lists.

Avatars for Different Products

From SaaS team settings to chat inboxes — six avatar patterns tuned to where they actually ship.

01 / 06

SaaS Team Settings

Member lists live and die by the avatar row — photo, name, role, access action. Initials fallback keeps the table tidy when nobody has uploaded a photo yet.

02 / 06

Collaboration & Docs

Stacked avatars with a +N chip show who else is in the document. The most compact way to signal presence without a sidebar.

03 / 06

Chat & Social Apps

A presence dot pinned to the avatar edge answers "can I message them right now" before the user opens a thread.

04 / 06

Marketplace Reviews

Reviewer avatar plus a verification tick raises perceived trust on product pages far more than a star rating alone.

05 / 06

Dashboards & Admin

One avatar primitive, six sizes. The same component serves a 20px table cell and a 96px profile header without a second implementation.

06 / 06

Account & Onboarding

The upload avatar is the first thing a new user personalises. Validation, preview and remove all handled client-side.

Avatar Styles and Variants

Initials fallback, presence badge, stacked group, size scale, uploader, profile row — pick the variant your surface needs.

01 / 06

Basic Avatar

Image with an initials fallback and a deterministic background color per name. The baseline every other variant extends.

02 / 06

Avatar With Status Badge

Online, away, busy, offline. Color plus a visually hidden label so presence never depends on color alone.

03 / 06

Avatar Group

Overlapping stack, ringed edges, and a +N overflow chip after the max visible count. Hover lifts the active member.

04 / 06

Sizes and Shapes

xs to 2xl on one lookup table, with circle, squircle and rounded-square shapes. Retheme the whole scale in one object.

05 / 06

Editable Avatar

Camera badge, hidden file input, type and size validation, local preview and remove. Ready for a settings page.

06 / 06

Avatar + Meta Row

Avatar, name, verification tick and role line — the compact row that fills tables and member lists.

Avatars for Different Frameworks

React, Next.js, TanStack Start, Vue 3, SvelteKit, or plain HTML — the same avatar, six ways to drop it in.

01 / 06

React Avatar

A single functional component with a size lookup and an onError fallback. No client state beyond the image-failed flag, safe anywhere in a React 18+ tree.

02 / 06

Next.js Avatar

Swap <img> for next/image to get automatic sizing and CDN optimisation. Keep the fallback in a small client component so the row itself stays a server component.

03 / 06

TanStack Start Avatar

Renders identically on the server — initials fallback is pure markup, so avatars are visible before hydration and never flash an empty circle.

04 / 06

Vue 3 Avatar

Single-file component with defineProps for src, name and size. The @error handler on the image flips a ref to render initials instead.

05 / 06

Svelte / SvelteKit Avatar

Reactive props with zero runtime overhead. Put it in $lib/Avatar.svelte and reuse it in tables, headers and comment threads.

06 / 06

Plain HTML + Tailwind Avatar

Framework-free markup for Astro, Hugo, Jekyll or a WordPress theme. Initials are just a span — no JavaScript needed unless you want the onError swap.

Where Avatar Components Get Used

Team lists, collaboration presence, social feeds, support inboxes, onboarding and marketplace reviews.

Team and Member Lists

Settings pages, org charts and permission tables all need the same row: avatar, name, role, action. Choose a pattern once and reuse it across every table in the app.

Real-Time Collaboration

Stacked avatars with a +N chip are the cheapest presence UI there is — one row tells the user who else is editing without a sidebar or a websocket dashboard.

Social Feeds and Comments

Comment threads, reactions and mentions repeat the avatar hundreds of times per page. A single primitive with a size scale keeps the layout consistent and the bundle small.

Chat and Support Inboxes

Presence badges tell an agent whether a customer is still online, and the initials fallback keeps the inbox readable when nobody has a profile photo.

Account Settings and Onboarding

The uploader preview shows the intended profile-photo layout and the file constraints a production implementation should handle.

Marketplaces and Reviews

Reviewer avatars with a verification tick do more for perceived trust than an extra star. Drop the profile row straight into product pages.

How to Add an Avatar to Your App

Four steps, from browsing the gallery to shipping the avatar in your production components.

01

Pick an Avatar Pattern

Scan the 6 templates above and pick the one closest to your surface — photo, illustrated, table row, presence stack, or upload control. (~30s)

02

Preview It Live

Every card renders a real React + Tailwind preview, so you see the spacing and sizing before you copy anything. (~2s)

03

Copy the Prompt

Copy the prompt into MeDo, Lovable, Bolt, v0 or Cursor. The gallery provides a brief and visual preview rather than a downloadable code file. (~10s)

04

Build It in MeDo

Open MeDo with the copied prompt, then adapt the resulting component for tables, headers and comment threads. (~1min)

Avatar Components FAQ

An avatar component renders a small image that represents a user, team or organisation — usually a circular profile photo. A production-ready avatar also handles the cases where the photo is missing or fails to load, typically by showing the person's initials on a generated background color.

Take an Avatar Prompt Into MeDo.

Choose a template, copy its prompt, then open MeDo to turn it into a working product with the main app's real generation flow.

Open MeDo