Clevision

Basic Avatar

Buttons 9

About

Here is Avatar component

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

Code

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

Usage.tsx

import { PlusCircleIcon } from 'lucide-react'

import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'

const AvatarPlusDemo = () => {
  return (
    <div className='relative w-fit'>
      <Avatar className='size-10'>
        <AvatarImage src='https://cdn.21st.dev/assets/mirror/ec/ec81be4cc810190ce4d240fcc57295965c5cebaa8751558595ade91eb62c09a4.png' alt='Hallie Richards' />
        <AvatarFallback className='text-xs'>HR</AvatarFallback>
      </Avatar>
      <button className='focus-visible:ring-ring/50 absolute -right-1 -bottom-1 inline-flex cursor-pointer items-center justify-center rounded-full focus-visible:ring-[3px] focus-visible:outline-none'>
        <PlusCircleIcon className='text-background size-5 fill-slate-400' />
        <span className='sr-only'>Add</span>
      </button>
    </div>
  )
}

export default AvatarPlusDemo

More by Clevision

View all
  • Portfolio Hero

    Portfolio Hero

    1.3K
  • Syntra Hero

    Syntra Hero

    787
  • Hero Section

    Hero Section

    461
  • Hardware Hero

    Hardware Hero

    264
  • Studio Hero

    Studio Hero

    251
  • Saas Hero Section

    Saas Hero Section

    248
  • Hero Section 41

    Hero Section 41

    212
  • Nexa Canvas Hero

    Nexa Canvas Hero

    125

More in Buttons

View all
  • Button

    Button

    172
  • Texture Button

    Texture Button

    122
  • Button

    Button

    22
  • Button

    Button

    89
  • Button Group

    Button Group

    1
  • Button Group

    Button Group

    6
  • Button

    Button

    54
  • Native Button

    Native Button

    17