Sequence
docs
Astro components

Link

A styled anchor link component.

A robust link component that supports internal and external links, optional icons, and arrow indicators.

Usage

---
import Link from '@/components/Link.astro';
import { MailIcon } from 'lucide-react';
---

<Link href="/contact" withArrow>Contact Us</Link>
<Link href="https://google.com" external>Google</Link>

Props

PropTypeDefaultDescription
hrefstring-Destination URL.
withArrowbooleanfalseDisplays an animated arrow icon.
externalbooleanfalseIf true, adds behavior for external links (new tab icon logic).
iconClassstring-CSS classes for the arrow icon.
classstring-Additional CSS classes for the link.

On this page