/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/formattedEmail` component displays an email as a hyperlink with the mailto: URL scheme. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-formatted-email/documentation |Lightning FormattedEmail Documentation} */ declare module "lightning/formattedEmail" { import { LightningElement } from "lwc"; /** * A component that displays an email address as a clickable link that opens the default email app. */ export default class LightningFormattedEmail extends LightningElement { /** * The email address that's displayed if a label is not provided. */ value: string; /** * The text label for the email address. */ label: string; /** * Reserved for internal use. Use tabindex instead to indicate if an element should be focusable. * A value of 0 means that the element is focusable and * participates in sequential keyboard navigation. A value of -1 means * that the element is focusable but does not participate in keyboard navigation. */ tabIndex: number; /** * If present, the email icon is hidden and only the email address is displayed. * This value defaults to false. */ hideIcon: boolean; /** * Sets focus on the element. */ focus(): void; /** * Removes keyboard focus from the element. */ blur(): void; /** * Simulates a mouse click on the email address and opens the default email app. */ click(): void; } }