Saturation UIsaturation UI
DocsComponentsBlocks
⌘K

Getting Started

IntroductionInstallationTheming

Components

AccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendarCardChartCheckboxCollapsibleComboboxCommandContext MenuData TableDate PickerDialogDropdown MenuEmptyFieldGlow EffectInputInput GroupItemKbdMenubarNovel EditorPaginationProgressive BlurProgressSelectSheetSkeletonSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Components
/
Avatar

Avatar

An image element with a fallback for representing the user.

CNSU
CNHLHRJW

Installation

npx shadcn@latest add https://ui.saturation.io/r/avatar.json

Usage

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

export default function Example() {
  return (
    <Avatar>
      <AvatarImage src="/images/design-mode/shadcn.png" />
      <AvatarFallback>CN</AvatarFallback>
    </Avatar>
  )
}

Examples

Default

CN

Fallback

When the image fails to load, the fallback is displayed.

SU

Sizes

CNCNCNCN

Avatar Group

Display multiple avatars in an overlapping group with hover tooltips.

CNHLHRJW

API Reference

ComponentPropTypeDescription
AvatarImagesrcstringThe image source URL
AvatarImagealtstringAlternative text for the image
AvatarFallbackchildrenReactNodeContent to display when image fails

On This Page

  • Preview
  • Installation
  • Usage
  • Examples
    • Default
    • Fallback
    • Sizes
    • Avatar Group
  • API Reference

Deploy your Saturation UI app

Build beautiful, saturated interfaces with our component library.

Deploy to Vercel for the best performance and developer experience.