Skip to main content

Introduction

The link component is used to render a clickable link that can perform an action:
By default, a link’s underlying HTML tag is <a>. You can change it to be a <button> tag by using the tag attribute:
By default, the size of a link is “medium”. You can make it “small”, “large”, “extra large” or “extra extra large” by using the size attribute:
By default, the font weight of links is semibold. You can make it thin, extralight, light, normal, medium, bold, extrabold or black by using the weight attribute:
Alternatively, you can pass in a custom CSS class to define the weight:
By default, the color of a link is “primary”. You can change it to be danger, gray, info, success or warning by using the color attribute:
You can add an icon to a link by using the icon attribute:
You can also change the icon’s position to be after the text instead of before it, using the icon-position attribute:
You can add a tooltip to a link by using the tooltip attribute:
You can render a badge on top of a link by using the badge slot:
You can change the color of the badge using the badge-color attribute: