SectionList
A list of section navigation items.
Implementation Notes
- Renders an
<ol>containingSectionListItemchildren - Used inside
SectionNavto enumerate the section's pages - Spreads
restPropsonto the root<ol>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | slot (required) | — | SectionListItem elements |
...restProps | HTML attributes | — | Spread onto the root <ol> |
Usage
<SectionList>
<SectionListItem><SectionLink href="/a">A</SectionLink></SectionListItem>
<SectionListItem><SectionLink href="/b" current>B</SectionLink></SectionListItem>
</SectionList>
Keyboard Interactions
- No keyboard interactions on the list itself
ARIA
- Native ordered list semantics announce the count of items
When to Use
- As the list element inside a
SectionNav
When Not to Use
- Use
BreadcrumbList,ContentsList,PaginationList, orTreeListin 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-list as the root class. No default styles are included.
Related components
section-nav— parent landmarksection-list-item— child list itemsection-link— link rendered inside each list item