import { LightningElement, api } from "lwc"; export default class ImageAndLabel extends LightningElement { @api imgSrc!: string; @api imgSize: "small" | "medium" | "large" = "small"; @api label!: string; @api href?: string | null = null; private get imgAlt() { return `Avatar for ${this.label}`; } private get imgClass() { return `size-${this.imgSize}`; } }