Avatar
TheVAvatar component is used to display circular user profile images, icons, or text. It supports various sizes, colors, and can include badges for status indicators.
Usage
Props
Image source URL for the avatar
Icon to display in the avatar
Text content to display (typically initials)
Show a badge on the avatar. Can be a boolean or an object with VBadge props
Aligns the avatar to the start of its container
Aligns the avatar to the end of its container
Sets the height and width of the component. Supports predefined sizes:
x-small, small, default, large, x-largeAdjusts the vertical height. Options:
default, comfortable, compactBorder radius of the avatar. Options:
0, xs, sm, md, lg, xl, pill, circleApplies a specified color to the control
Applies a distinct style to the component. Options:
flat, text, elevated, tonal, outlined, plainApplies border styles to the component
Specify a custom HTML tag to use on the root element
Slots
default
The default slot for custom avatar content
badge
Slot for custom badge content when badge prop is enabled