Introduction
The button component is used to render a clickable button that can perform an action:Using a button as an anchor link
By default, a button’s underlying HTML tag is<button>. You can change it to be an <a> tag by using the tag attribute:
Setting the size of a button
By default, the size of a button is “medium”. You can make it “extra small”, “small”, “large” or “extra large” by using thesize attribute:
Changing the color of a button
By default, the color of a button is “primary”. You can change it to bedanger, gray, info, success or warning by using the color attribute:
Adding an icon to a button
You can add an icon to a button by using theicon attribute:
icon-position attribute:
Making a button outlined
You can make a button use an “outlined” design using theoutlined attribute:
Adding a tooltip to a button
You can add a tooltip to a button by using thetooltip attribute:
Adding a badge to a button
You can render a badge on top of a button by using thebadge slot:
badge-color attribute: