Forms
Navigation & layout
Data display & feedback
Date & time
Browse components
← All components
Link
Styled text link with underline variants.
Install
npx shadcn@latest add https://ui.anuragroy.dev/r/link.jsonPreview
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.jsonGitHub fallback if the website is down:
Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/link.jsonUsage
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.
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "muted" | "foreground" | "default" |
| underline | "none" | "hover" | "always" | "hover" |