SectionLink
One section link in the navigation.
Implementation Notes
- Renders an
<a>linking to a section page - When
currentis true, setsaria-current="page"to mark the active section - Spreads
restPropsonto the root<a>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
href | string (required) | — | Link target |
current | boolean | false | Whether this link represents the current page |
children | slot (required) | — | Link text |
...restProps | HTML attributes | — | Spread onto the root <a> |
Usage
<SectionLink href="/section-a" current>Section A</SectionLink>
Keyboard Interactions
- Tab moves focus onto the link
- Enter activates the link (native browser behaviour)
ARIA
- Native anchor accessibility
aria-current="page"whencurrentis true
When to Use
- As the clickable element inside
SectionListItem
When Not to Use
- Use
BreadcrumbLink,ContentsLink,PaginationLink, orTreeLinkin their respective navs
Headless
This headless component renders semantic HTML with appropriate ARIA wiring. The consumer provides all visual styling — no CSS, animations, or layout assumptions are baked in.
Styles
The component renders with .section-link as the root class. No default styles are included.
Related components
section-nav— landmark wrappersection-list/section-list-item— structural ancestors