SectionLink

One section link in the navigation.

Implementation Notes

  • Renders an <a> linking to a section page
  • When current is true, sets aria-current="page" to mark the active section
  • Spreads restProps onto the root <a>

Props

PropTypeDefaultDescription
hrefstring (required)Link target
currentbooleanfalseWhether this link represents the current page
childrenslot (required)Link text
...restPropsHTML attributesSpread 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" when current is true

When to Use

  • As the clickable element inside SectionListItem

When Not to Use

  • Use BreadcrumbLink, ContentsLink, PaginationLink, or TreeLink in 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 wrapper
  • section-list / section-list-item — structural ancestors

References