content

Tailwind CSS Link

The link component facilitates setting hyperlinks from inline text items, buttons, or cards to navigate between pages or external websites.

Class Name
Type
Description
linkComponentAdds underline to a text.
link-hoverModifierOnly show underline on hover.
link-animatedModifierShow underline on hover with animation.
link-neutralModifierApplies’neutral’ color to link.
link-primaryModifierApplies’primary’ color to link.
link-secondaryModifierApplies’secondary’ color to link.
link-accentModifierApplies’accent’ color to link.
link-successModifierApplies’success’ color to link.
link-infoModifierApplies’info’ color to link.
link-warningModifierApplies’warning’ color to link.
link-errorModifierApplies’error’ color to link.

The link component class serves as the standard class for the basic anchor tag.

Apply the link-hover modifier class to make links underlined when hovered over.

Apply the link-animated modifier class to make links underlined with animation on hovered over.

Utilize the link-{semantic-color} modifier class to assign specific semantic colors to links.

Below is an example demonstrating how to use links within paragraph.

Below is an example demonstrating how to use links in card.

Below is an example demonstrating how to use links in alert.