Toggle Button Data

<button id="61efa38ebe5dc7.22519241" class="c-button c-button__filled c-button__filled--default c-button--lg c-button__toggle ripple ripple--before" href="" target="_top" data-toggle-label="Close" data-toggle-icon="close" type="basic" js-toggle-trigger="61efa38ebe5e85.21618780" js-toggle-item="61efa38ebe5e85.21618780" aria-pressed="false" data-uid="61efa38ebe5f8">   
    <span class="c-button__label">
    
                    <span class="c-button__label-text">
                Click Me!
            </span>

            <span class="c-button__label-icon">
                <!-- icon.blade.php -->
    <i id="61efa38ebe6a1" class="c-icon c-icon--size-lg material-icons" translate="no" role="img" alt="" data-uid="61efa38ebe69c">
                    code
            </i>
            </span>
        
                    
            
    </span>
</button>

Attributes

This script allows you to toggle the content of a button By adding one of these data attributes, when the button is pressed it will toggle the content of either attribute. You can choose to change either one or both. The attribute data-toggle-label will toggle between the original label and the string in the attribute. The attribute data-toggle-icon will change the icon between the original icon and the icon name in the attribute.

Blade component parameters

Attributes Description Values
data-toggle-label The label to toggle to string
data-toggle-icon The icon to toggle to string