Avatar represents a user/bot within a UI. Typically with text or image content.
<nve-avatar>AV</nve-avatar>
AV
Installation
<script type="module">
import '@nvidia-elements/core/avatar/define.js';
</script>
<nve-avatar>AV</nve-avatar>
Image
Avatar with profile image, offering personalized user representation and visual identity in interfaces.
<nve-avatar>
<img src="static/images/test-image-1.svg" alt="User Avatar" />
</nve-avatar>
Icon
Avatar with icons for representing system users, bots, or special account types with clear visual indicators.
<div nve-layout="row gap:sm align:wrap">
<nve-avatar>
<nve-icon name="star"></nve-icon>
</nve-avatar>
<nve-avatar>
<nve-icon name="person"></nve-icon>
</nve-avatar>
</div>
Size
Controls the visual scale of an element to match its importance and available space.
Size Description sm Compact size for dense layouts or secondary elements with less visual prominence. md Standard size that works well in most contexts and provides balanced visibility. lg Larger size for emphasizing important elements or improving touch targets in spacious layouts. xs
Different avatar sizes to accommodate layout contexts from compact lists to prominent user profiles.
<div nve-layout="row gap:sm align:wrap">
<nve-avatar size="sm">AV</nve-avatar>
<nve-avatar>AV</nve-avatar>
<nve-avatar size="lg">AV</nve-avatar>
</div>
Color
Defines a base color from the theme color palette
Color Description red-cardinal gray-slate gray-denim blue-indigo blue-cobalt blue-sky teal-cyan green-mint teal-seafoam green-grass yellow-amber orange-pumpkin red-tomato pink-magenta purple-plum purple-violet purple-lavender pink-rose green-jade lime-pear yellow-nova brand-green
Comprehensive color palette for avatar backgrounds, enabling visual distinction and brand consistency across user representations.
<div nve-layout="row gap:sm align:wrap">
<nve-avatar color="red-cardinal">AV</nve-avatar>
<nve-avatar color="gray-slate">AV</nve-avatar>
<nve-avatar color="gray-denim">AV</nve-avatar>
<nve-avatar color="blue-indigo">AV</nve-avatar>
<nve-avatar color="blue-cobalt">AV</nve-avatar>
<nve-avatar color="blue-sky">AV</nve-avatar>
<nve-avatar color="teal-cyan">AV</nve-avatar>
<nve-avatar color="green-mint">AV</nve-avatar>
<nve-avatar color="teal-seafoam">AV</nve-avatar>
<nve-avatar color="green-grass">AV</nve-avatar>
<nve-avatar color="yellow-amber">AV</nve-avatar>
<nve-avatar color="orange-pumpkin">AV</nve-avatar>
<nve-avatar color="red-tomato">AV</nve-avatar>
<nve-avatar color="pink-magenta">AV</nve-avatar>
<nve-avatar color="purple-plum">AV</nve-avatar>
<nve-avatar color="purple-violet">AV</nve-avatar>
<nve-avatar color="purple-lavender">AV</nve-avatar>
<nve-avatar color="pink-rose">AV</nve-avatar>
<nve-avatar color="green-jade">AV</nve-avatar>
<nve-avatar color="lime-pear">AV</nve-avatar>
<nve-avatar color="yellow-nova">AV</nve-avatar>
<nve-avatar color="brand-green">AV</nve-avatar>
</div>
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
AV
Avatar Group
Avatar group component for displaying many users with overflow indicator, ideal for team displays and collaboration interfaces.
<nve-avatar-group>
<nve-avatar color="red-cardinal">AV</nve-avatar>
<nve-avatar color="blue-cobalt">AV</nve-avatar>
<nve-avatar color="green-grass">AV</nve-avatar>
<nve-avatar>+3</nve-avatar>
</nve-avatar-group>
AV
AV
AV
+3
Release Status
All elements and features go through 3 phases of stability, pre-release, beta and stable.
pre-release
Docs Preview
API Documentation
Fully Themeable
beta
Robust unit test coverages
Passed API Review
Passed Designer VQA Review
Included in library package
stable
No known outstanding AA WCAG issues
No known outstanding performance issues
Adapts to different screen/container sizes
No breaking API changes for at least 90 days