Avatar
A graphical representation of the user, often used in profile sections.
A graphical representation of the user, often used in profile sections.
import { Avatar, type AvatarProps } from '@tacos-ui/react';
export const Demo = (props: AvatarProps) => {
return <Avatar name="John Doe" src="https://i.pravatar.cc/300" {...props} />;
};
When only a name is supplied, the initials are displayed.
<Avatar name="Samuel Billaud" />
Displays a default avatar in the absence of user data.
<Avatar />