/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/avatar` component represents a visual representation of an object, such as a user or account. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-avatar/documentation | Lightning Avatar Documentation} */ declare module "lightning/avatar" { import { LightningElement } from "lwc"; /** * A visual representation of an object, such as a user or account. */ export default class LightningAvatar extends LightningElement { /** * The alternative text used to describe the avatar, which is displayed as hover text on the image. * This value is required. */ alternativeText: string; /** * The Lightning Design System name of the icon used as a fallback when the image fails to load. * Names are written in the format 'standard:account'. * Only icons from the standard and custom categories are allowed. */ fallbackIconName: string; /** * 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. */ initials?: string; /** * The size of the avatar. Valid values are x-small, small, medium, and large. This value defaults to medium. * This value defaults to medium. */ size: "x-small" | "small" | "medium" | "large"; /** * The URL for the image. * This value is required. */ src: string; /** * The variant changes the shape of the avatar. Valid values are circle and square. This value defaults to square. * This value defaults to square. */ variant: "circle" | "square"; } }