Link

A styled anchor with the accent color, underline on hover and a visible focus ring. Accepts every native anchor prop, so it works with Next.js or plain hrefs.

src/registry/ui/link.tsx/r/link.json

Installation#

bash
npx shadcn@latest add @minidev/link

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/link.json

Usage#

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

export function Example() {
  return <Link />
}

API reference#

Also accepts every prop of <a>, passed through to the root element.

All navigation components

Learn more