Skip to content
SevenOne

Search documentation

Search pages and components

Avatar

A person or team as an image or initials. Sizes: 32, 40 and 48px.

Installation

npx shadcn@latest add @sevenone/avatar

Usage

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

Examples

Sizes and group

ASASAS
JLIN
+3
<Avatar>
  <AvatarImage src="/ana.jpg" alt="Ana Souza" />
  <AvatarFallback>AS</AvatarFallback>
</Avatar>

Accessibility

  • Give the image an alt with the person's name.
  • Initials are 7:1 on the muted background.