GoToNextSection
A link that takes users to the next section of the current page.
A link that takes users to the next section of the current page.
<a class="go-to-next-section" href="#section-3" aria-label="Next section: Implementation">Next: Implementation →</a><GoToNextSection href="#section-3" label="Next section: Implementation" />
// In your Svelte component:
import GoToNextSection from "lily-design-system-svelte-headless/components/GoToNextSection/GoToNextSection.svelte";
<GoToNextSection>
<!-- content -->
</GoToNextSection>
<GoToNextSection href="#section-3" label="Next section: Implementation" />
href: string (required) — anchor URL of the next section, typically #section-idlabel: string (required) — visible link textclassName: string (optional) — extra CSS classes appended to go-to-next-sectionhref provides the destination, the link text provides the accessible nameGoToPreviousSection to give readers symmetric forward/back movement at the end of each section.ContentsNav or SectionNav instead.This headless component renders semantic HTML. The consumer provides all visual styling. No CSS, animations, or layout are included — the consumer composes those.
The component renders with .go-to-next-section as the root class. No default styles are included.
go-to-previous-section — a link that takes users to the previous section of the current pagego-to-top — a link that returns users to the top of a long pagesection-nav — a navigation container for section navigation links.go-to-next-section in css-style-sheet-template.css<a> with class go-to-next-section linking to a section anchor on the same pagehref prop pointing at the next section's anchor (e.g. #section-3)label prop for the visible link textGoToPreviousSection and GoToTopGenerated from this component's canonical metadata — the machine-checked source the implementations are held to.
href provides the destination, the link text provides the accessible namehref: string (required) — anchor URL of the next section, typically #section-idlabel: string (required) — visible link textclassName: string (optional) — extra CSS classes appended to go-to-next-section