/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/button` is a component that represents a button element that executes an action. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-button/documentation|Lightning Button Documentation} */ declare module "lightning/button" { import { LightningElement } from "lwc"; /** * Represents the exposed methods and variables of Lightning Button. */ export default class LightningButton extends LightningElement { name?: string; value?: string; label?: string; variant: | "base" | "neutral" | "brand" | "brand-outline" | "destructive" | "destructive-text" | "inverse" | "success"; iconName?: string; iconPosition: "left" | "right"; stretch: boolean; type: "button" | "reset" | "submit"; disableAnimation: boolean; focus(): void; click(): void; } /** * Interface for Custom Events in LightningButton. */ export interface LightningButtonEvents { focus: CustomEvent; blur: CustomEvent; } }