Home Avatar

The Avatar component is used to represent a user. It can display a profile picture, the user’s initials, or a fallback icon if the image is not available.

Installation

npm
npx phpxui add Avatar

Usage

use Lib\PHPXUI\{
    Avatar,
    AvatarFallback,
    AvatarImage,
}
<Avatar>
  <AvatarImage src="https://github.com/shadcn.png" />
  <AvatarFallback>CN</AvatarFallback>
</Avatar>