Link

Navigation

A styled anchor element for navigation. Use links for inline navigation, external references, or any clickable text that navigates to another page.

Import

import { Link } from "@/components/ui/link";

Usage

Variants

Different link styles for various contexts

Sizes

Links in different text sizes

External Links

Links to external websites with icon indicator

In Text

Links used within paragraph text

API Reference

href*
string

The URL to navigate to

variant"default"
"default" | "primary" | "muted" | "subtle" | "nav"

Visual style of the link

size"md"
"sm" | "md" | "lg"

Text size of the link

external
boolean

Force external link behavior

showExternalIcontrue
boolean

Show external link icon for external URLs