appica-dev

Avatar

Component 5

About

A user profile image with automatic initials/icon fallback, status badge, and grouping for stacking multiple avatars in a row.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Avatar to your project and fits it to your theme.

Code

How Avatar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
import { UserFilled } from "@appica/icons-react";

export default function AvatarFallbackExample() {
  return (
    <div className="flex h-screen w-full items-center justify-center gap-4 bg-background">
      <Avatar size="lg">
        <AvatarImage src="/avatars/does-not-exist.jpg" alt="Sarah Jenkins" />
        <AvatarFallback>SJ</AvatarFallback>
      </Avatar>
      <Avatar size="lg">
        <AvatarFallback>MR</AvatarFallback>
      </Avatar>
      <Avatar size="lg">
        <AvatarFallback>
          <UserFilled />
        </AvatarFallback>
      </Avatar>
    </div>
  );
}

Dependencies

More by appica-dev

View all
  • Border Beam

    Border Beam

    70
  • Text Animate

    Text Animate

    23
  • Carousel

    Carousel

    23
  • Table of Contents

    Table of Contents

    10
  • Sparkline

    Sparkline

    9
  • Background Pattern

    Background Pattern

    8
  • Color Area

    Color Area

    7
  • Alert

    Alert

    3