appica-dev

Avatar

Component 3

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

    42
  • Text Animate

    Text Animate

    19
  • Carousel

    Carousel

    14
  • Sparkline

    Sparkline

    7
  • Table of Contents

    Table of Contents

    6
  • Color Area

    Color Area

    6
  • Background Pattern

    Background Pattern

    3
  • Autocomplete

    Autocomplete

    2