Link

A link allows a user to navigate to another page or resource.

Installation

npx shadcn@latest add @dotui/link

Usage

import { Link } from '@/components/ui/link'
<Link href="/docs">Documentation</Link>

Passing href renders a real <a>; add target="_blank" (with rel) to open a new tab. To route internal hrefs through your app router, override Link in your project the same way Breadcrumbs does for BreadcrumbLink.

<Link href="https://dotui.org" target="_blank" rel="noreferrer">
  dotUI
</Link>

Examples

Default

In Text

Built on React Aria Components for accessibility and styled with Tailwind CSS. Read the getting started guide to learn more.

API Reference

A link allows a user to navigate to another page or resource within a web page or application.

PropType
"accent" | "quiet" | "unstyled"
ReactNode | function
boolean

Last updated on 7/9/2026