Avatar
Versatile UI element, the Avatar component visually represents users or entities, typically displaying an image or a placeholder graphic.
Import
import { Avatar } from '@vortex-kit/vortex';
import type { AvatarProps } from '@vortex-kit/vortex';
Display
<Avatar src='./ugi.webp' alt='Ugi' />
Allied components
Avatar
Avatar types like WithImage, WithInitials, and WithIcon offer flexible options for representing user profiles with images, initials, or icons, ensuring consistent and adaptable visual elements across applications.
Shared Avatar Props
Prop | Type | Default |
---|---|---|
|
|
|
|
|
|
|
| |
|
|
Avatar With Image
Prop | Type | Default |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
Avatar With Initials
Prop | Type | Default |
---|---|---|
|
| |
|
|
|
|
|
Avatar With Icon
Prop | Type | Default |
---|---|---|
|
| |
|
|
|
|
|
Avatar.Aligner
Prop | Type | Default |
---|---|---|
|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
Avatar.Content
Prop | Type | Default |
---|---|---|
|
| |
|
|
|
|
|
|
|
| |
|
| |
|
|
Avatar Text
Avatar.Title and Avatar.Subtitle share identical properties. However, they differ in text size: Avatar.Title employs a body-md-desktop size, making it larger and more prominent, while Avatar.Subtitle uses a smaller body-xs-desktop size for subtler emphasis.
Prop | Type | Default |
---|---|---|
|
| |
|
|
|
|
| |
|
|
|
|
|
|
|
| |
|
|