Loading
×Sorry to interrupt
CSS Error
Lightning Web Component

Button Stateful

  • A button that toggles between states.

    Descriptor

    lightning-button-stateful

    Targets

    Lightning Experience, Experience Builder Sites, Salesforce Mobile App, Standalone Lightning App, Mobile Offline

Component examples use older versions of SLDS and base Lightning components. Recent color updates for accessibility aren't reflected in the examples. See the Lightning Web Components Developer Guide for more information.

This stateful button changes its text and icon when you select it. The button changes its text and icon again when you hover over it. This uses the default variant.
Example
Documentation
Specification