Lapikit

Avatar component

Avatar

The Avatar component is used to display images, icons or initials representing a person or object. It is often used in user interfaces to identify users, profiles or entities. Thanks to its many customization options, the Avatar component adapts easily to different styles and contexts.`

NY

Examples of avatar

Base

This example shows the simple use of the Avatar component with its default settings. Ideal for quick, intuitive integration.

NY

Size

The size property defines the size of the Avatar. The available options: xs, sm, md, lg, xl and full, adapt to different design needs.

xs
sm
md
lg
xl

Density

The density property adjusts the density of the Avatar: compact, comfortable or default. This allows you to control the spacing and overall appearance of the component.

Hi
Ny
Hey

Variant

The variant property lets you customize the Avatar’s style. The available options: outline, text and dash, offer visual variations adapted to different contexts.

API Reference

propstypedescriptiondefaulttype_extend
ref $bindableHTMLElementDirect access to DOM elementundefined
darkbooleanEnable dark theme for component.false
lightbooleanEnable light theme for the component.false
colorstringApplies a custom color to text or icons.undefined
backgroundstringApply a custom background color.undefined
densityenumControls vertical densitydefaultcompact | comfortable | default
roundedstringControls item rounding (none, sm, md, lg, etc.).md
variantenumSets the visual style of the avatar.undefinedoutline | text | dash
srcstringSpecifies the URL of the image to be displayed in the Avatarundefined
sizeenumSet Avatar size: xs, sm, md, lg, xl or full.mdxs | sm | md | lg | xl | full

Variables CSS

variabledefaultdescription
–-avatar-color–-kit-on-containerText color
–-avatar-background–-kit-containerBackground color
–-avatar-radius--kit-radius-fullAvatar edge radius

Associate Avatars with user Cards or Chips to display roles or status.

©2025 Lapikit.

Made with by Nycolaide