I am new to this SLDS classes. The button group icon is not working. The UI renders perfectly but the event are not getting fired. Am I missing something?

Thanks in advance.

  • 1
    SLDS only provides the UI. As of now you have to write for the behavior on your own. There are some existing frameworks which is mostly used like Lightning Dart or Appiphony
    – Raul
    Commented May 3, 2017 at 11:58

1 Answer 1


If you are using SLDS in a Lightning Component, then you can leverage the various components provided by the platform to do most of the work for you including dispatching to controller methods and in the case of the lightning: components also applying the correct CSS classes:

<div class="slds-button-group" role="group">
    <lightning:button label="Save" variant="brand" onclick="{! c.doSave }"/>
    <lightning:button label="Cancel" variant="neutral" onclick="{! c.doCancel }"/>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .