The library is still in early development. Breaking changes and bugs may occur without prior notice. Thanks for your interest in using the library!
A circular component used to display user profile images, with fallback support.
Import the Avatar
, AvatarImage
, and AvatarFallback
components from @bun-ui/react
:
import { Avatar, AvatarImage, AvatarFallback } from "@bun-ui/react"
If the image fails to load, or no image is provided, a fallback will render automatically:
Prop | Type | Default | Description |
---|---|---|---|
size | "sm" | "md" | "lg" | "xl" | "md" | Size of the avatar. |