Initials
If an image is unavailable, up to two letters can be used instead. If the record name contains two words, like first and last name, use the first capitalized letter of each. For records that only have a single word name, use the first two letters of that word using one capital and one lower case letter. If either an image or initials are unavailable, use the object icon as a fallback.
Initials Examples
JD
John Doe
Sa
Sarah (single name)
AC
Acme Corp
Linked Avatar Initials
JSLayout
Circle
Use a circle for all people-oriented objects that could potentially render as avatars. For a fully round avatar, add the .slds-avatar_circle
class.
Circle Image
JD
Circle Initials
Sizes
X-Small
Small
Medium
Large
Interactive Controls
DA
Component API
Basic Avatar Structure
<!-- Image Avatar --><span class="slds-avatar slds-avatar_medium"> <img alt="Person name" src="path/to/image.jpg" title="User avatar"></span><!-- Initials Avatar --><span class="slds-avatar slds-avatar_medium"> <abbr class="slds-avatar__initials slds-icon-standard-user" title="John Doe">JD</abbr><