GitHub

Avatar

The Avatar component visually represents a user or a group of users.

Preview

@shadcn CN CN

API Reference

proptypedefaultdescription
packagetyping.Literal['flect']flectNone
class_nametyping.Optional[str]NoneSpecifies the Tailwind CSS classes for the component.
srctyping.Optional[str]NoneSpecifies the image source for the avatar.
alttyping.Optional[str]NoneProvides alternative text for the avatar image.
fallback<class 'str'>NoneDefines the fallback text for the avatar image.