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