Neobrutalism UI LogoNeobrutal UI

Avatar

An image element with a fallback for representing the user.

@shadcn
CN

Installation

npx neobrutal add avatar

Usage

import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar"
<Avatar>
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>

Examples

With Image

@shadcn
CN

Fallback

Displays initials when no image is available.

JD

Group

Display multiple avatars with an overflow indicator.

A
B
C
+2

Props

AvatarGroup

PropTypeDefaultDescription
maxnumber3The maximum number of avatars to display before showing an overflow indicator.