SectionLink
One section link in the navigation.
One section link in the navigation.
<div class="section-link" aria-label="one section link in the navigation">SectionLink</div><SectionLink href="/section-a" current>Section A</SectionLink>
// In your Svelte component:
import SectionLink from "lily-design-system-svelte-headless/components/SectionLink/SectionLink.svelte";
<SectionLink>SectionLink</SectionLink>
<SectionLink href="/section-a" current>Section A</SectionLink>
| 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> |
aria-current="page" when current is trueSectionListItemBreadcrumbLink, ContentsLink, PaginationLink, or TreeLink in their respective navsThis headless component renders semantic HTML with appropriate ARIA wiring. The consumer provides all visual styling — no CSS, animations, or layout assumptions are baked in.
The component renders with .section-link as the root class. No default styles are included.
section-nav — landmark wrappersection-list / section-list-item — structural ancestors<a> linking to a section pagecurrent is true, sets aria-current="page" to mark the active sectionrestProps onto the root <a>Generated from this component's canonical metadata — the machine-checked source the implementations are held to.
aria-current="page" when current is truehref: string (required) (default: —) — Link targetcurrent: boolean (default: false) — Whether this link represents the current pagechildren: slot (required) (default: —) — Link text...restProps: HTML attributes (default: —) — Spread onto the root <a>