Use: The lightning:menuDivider component is use within lightning:buttonMenu Component.
Short description: The lightning:menuDivider component is a child component of lightning:buttonMenu.The lightning:menuDivider is to create a dividing line after a menu item.
Demo:
Example:
https://gist.github.com/amitkumarRoy/107ab84ca142932c1dd39e3bb7204414
What if in this button, I just want the setting icon and not the dropdown icon. How can I achieve it?