Newer Version Available
Button Labels
Buttons can appear with text only, an icon and text, or an icon without text. To create an
accessible button, use lightning:button and set a
textual label using the label attribute.
Button with text only:
Button with icon and text:
Button with icon only:
The alternativeText attribute provides a text label that’s hidden from view and available to assistive technology.
This example shows the HTML generated by lightning:button: