Skip to main content
You are currently viewing the documentation for Filament 3.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.

Overview

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: