SectionList
A list of section navigation items.
A list of section navigation items.
<div class="section-list" aria-label="a list of section navigation items">SectionList</div><SectionList>
<SectionListItem><SectionLink href="/a">A</SectionLink></SectionListItem>
<SectionListItem><SectionLink href="/b" current>B</SectionLink></SectionListItem>
</SectionList>
// In your Svelte component:
import SectionList from "lily-design-system-svelte-headless/components/SectionList/SectionList.svelte";
<SectionList>
<!-- list children -->
</SectionList>
<SectionList>
<SectionListItem><SectionLink href="/a">A</SectionLink></SectionListItem>
<SectionListItem><SectionLink href="/b" current>B</SectionLink></SectionListItem>
</SectionList>
| Prop | Type | Default | Description |
|---|---|---|---|
children | slot (required) | — | SectionListItem elements |
...restProps | HTML attributes | — | Spread onto the root <ol> |
SectionNavBreadcrumbList, ContentsList, PaginationList, or TreeList 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-list as the root class. No default styles are included.
section-nav — parent landmarksection-list-item — child list itemsection-link — link rendered inside each list item<ol> containing SectionListItem childrenSectionNav to enumerate the section's pagesrestProps onto the root <ol>Generated from this component's canonical metadata — the machine-checked source the implementations are held to.
children: slot (required) (default: —) — SectionListItem elements...restProps: HTML attributes (default: —) — Spread onto the root <ol>