Skip to content

Browse components

← All components

Link

Styled text link with underline variants.

Install
npx shadcn@latest add https://ui.anuragroy.dev/r/link.json

Preview

Loading preview…

Installation

Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.

Terminal
npx shadcn@latest add https://ui.anuragroy.dev/r/link.json

GitHub fallback if the website is down:

Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/link.json

Usage

Import paths follow your components.json aliases. After install, the default path is @/components/ui/link.

Import
import { Link } from "@/components/ui/link"
example.tsx
import { Link } from "@/components/ui/link"export function Example() {  return <Link href="/docs">Documentation</Link>}

API Reference

Link

Native `a` with CVA variants.

PropTypeDefault
variant"default" | "muted" | "foreground""default"
underline"none" | "hover" | "always""hover"