/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/buttonStateful` component displays an icon-only button. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-button-stateful/documentation |Lightning ButtonStateful Documentation} */ declare module "lightning/buttonStateful" { import { LightningElement } from "lwc"; /** * A stateful button that can toggle between different states with varying icons and labels. */ export default class LightningButtonStateful extends LightningElement { /** Specifies whether the button should be disabled */ disabled: boolean; /** The name of the icon to be displayed when the button is selected */ iconNameWhenOn: string; /** The name of the icon to be displayed when the button is not selected */ iconNameWhenOff: string; /** The name of the icon to be displayed when the button is hovered */ iconNameWhenHover: string; /** The label displayed when the button is not selected */ labelWhenOff: string; /** The label displayed when the button is selected */ labelWhenOn: string; /** The label displayed when the button is hovered */ labelWhenHover: string; /** Specifies the order of the button in a group */ groupOrder: string; /** The variant style of the button */ variant: string; /** Specifies whether the button is currently selected */ selected: boolean; /** Sets focus on the button element */ focus(): void; } }