Tailwind CSS Link Components

The Link component is used for navigation between pages or to external sites. It is styled to look like traditional text but with interactive hover states and colors. You can add icons and underline effects. It is an essential building block for menus, footers, and inline body text navigation.

Basic Usage

html

Apply semantic link colors to match your theme or to convey meaning (such as using link-error for destructive actions or link-success for confirmation).

html

Scale your hyperlinks to match the surrounding typography. These utility classes range from extra small for footer "legal" text to 2X large for high-impact hero sections.

html

By default, you can choose to hide the underline and only reveal it on hover. This is a common design pattern for cleaner navigation menus and dashboard sidebars.

html