๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข
UI Components

Avatar

User avatar with image support, initials fallback, multiple sizes, and AvatarGroup for overlapping stacks

Quick Preview

XSSMMDLGXL

Installation

// Copy the Avatar component from
src/components/ui/Avatar.tsx

Usage

import { Avatar, AvatarGroup } from '@/components/ui/Avatar'
// With initials fallback
<Avatar initials="JD" size="md" />
// With image
<Avatar
src="https://example.com/photo.jpg"
alt="Jane Doe"
size="lg"
/>
// Grouped avatars
<AvatarGroup
avatars={[
{ initials: "A" },
{ initials: "B" },
{ initials: "C" },
{ initials: "D" },
]}
max={3}
/>

Examples

With Image (broken image shows initials)

Alice

With image

BK

Initials fallback

AvatarGroup โ€” Overlapping Stack

ABCD+1

In Context โ€” User Row

JD

Jane Doe

jane@example.com

Prompt Preview

Copy a prompt that recreates this UI

Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.

Copy-ready AI prompt

Starts from the current visual reference and project constraints.

Tweak only product-specific copy or data after the first generation pass.

Props

PropTypeDefaultDescription
srcstring-Image URL
altstring-Alt text for the image
initialsstring-Fallback text when no image (max 2 chars)
size"xs" | "sm" | "md" | "lg" | "xl""md"Avatar size
classNamestring-Additional CSS classes

Features

  • โœ“5 sizes: xs, sm, md, lg, xl
  • โœ“Image with broken-image fallback
  • โœ“Initials fallback with primary color
  • โœ“AvatarGroup with overlap + overflow counter
  • โœ“Server Component