Astro components
Header link
Navigation link with active state styling.
A link component used in the header that automatically highlights itself when the current URL matches its destination.
Usage
---
import HeaderLink from '@/components/HeaderLink.astro';
---
<HeaderLink href="/about">About</HeaderLink>Props
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | - | The URL path for the link. |
class | string | - | Additional CSS classes. |
...props | HTMLAttributes<'a'> | - | Any other attributes passed to the anchor tag. |