The following props are available for avatar component. These are the custom props that come with we've added for the avatar component and you can use all the other native img props as well.
Attribute | Type | Description | Default |
---|---|---|---|
variant | Variant | Change avatar variant | rounded |
size | Size | Change avatar size | md |
className | string | Add custom className for avatar | '' |
import type { AvatarProps } from "@material-tailwind/react";
type variant = "rounded" | "circular";
type size = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";