Sean Hello

Base Avatar

Component 4

About

An easily stylable avatar component built with Base UI components.

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

Code

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

Usage.tsx

import { Avatar, AvatarFallback } from '@/components/ui/base-avatar';
import { User } from 'lucide-react';

export default function Component() {
  return (
    <div className="flex gap-6">
      <Avatar>
        <AvatarFallback>CH</AvatarFallback>
      </Avatar>
      <Avatar>
        <AvatarFallback className="text-destructive bg-destructive/10">AJ</AvatarFallback>
      </Avatar>
      <Avatar>
        <AvatarFallback className="text-primary bg-primary/10">
          <User className="size-4" />
        </AvatarFallback>
      </Avatar>
    </div>
  );
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.3K
  • Line Charts 9

    Line Charts 9

    630
  • Alert

    Alert

    492
  • Area Charts 1

    Area Charts 1

    383
  • Line Charts 6

    Line Charts 6

    381
  • Scroll Area

    Scroll Area

    375
  • Area Charts 2

    Area Charts 2

    315
  • Navigation Menu

    Navigation Menu

    305