Components
Button
onClick
Variant
Icons
Icons can be added anywhere as a child of the button. In most scenarios you should simply add a lucide icon without any extra styling. The button already takes care of styling svg elements.
Shape
For single icons without text, you should make the button square via shape="square"
Keyboard
Providing a keyboard shortcut will add an icon on the right side of the button and fire the callback when the key is pressed.
Loading
Providing a loading state will add a spinner on the left side of the button.