Is there a simple way to get a button with an icon on top? #789
-
Shoelace has prefix and suffix icons in a button. Is there a simple way to style the button so the "prefix" is above the text rather than to the left of it? My gut tells me that it's technically possible if I torture the CSS enough, but not advisable. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Looks like you can set the |
Beta Was this translation helpful? Give feedback.
-
Jared’s answer is valid, but another approach is to not use the prefix at all. |
Beta Was this translation helpful? Give feedback.
Jared’s answer is valid, but another approach is to not use the prefix at all.
https://codepen.io/claviska/pen/yLvZpLP?editors=1000