← All Components

Link

Styled anchor with variant support and asChild for composing with Next.js Link.

Variants

Sizes

With Next.js Link (asChild)

Go Home

Props

PropTypeDescription
variant"default" | "muted" | "destructive" | "plain"Visual style
size"sm" | "md" | "lg"Text size
asChildbooleanRender as child element via Radix Slot (e.g. wrap Next.js Link)
classNamestringAdditional classes on the root element

Usage

<Link href="/forgot-password" variant="muted" size="sm"> Forgot password? </Link> {/* Compose with Next.js Link */} <Link asChild variant="default"> <NextLink href="/sign-up">Create account</NextLink> </Link>