ArticleNav

Previous/next navigation at the end of articles

stable v1.2.0

In the canon with two real uses: the date on sebastianunda's articles and the navigation of this documentation.

Preview

The real canon component: real typography, top border and hover.

Props

PropTypeNote
prev, next{ title, url, meta? }Both optional; with neither, nothing renders
locale'es' | 'en'Default 'es'. Controls the kickers and aria-label.
prevLabel, nextLabelstringOverride the locale's kickers

Tokens

ElementFamilySize
Kicker ("Previous"/"Next")Georama14px / 400, secondary
MetaGeorama16px / 400, secondary. Contextual label: a date on articles, a section in this documentation
TitleAleo22px / 500, primary. Hover: accent (dark mode)
Top bordern/a1px solid, 20% opacity → full on hover

Constraints

  • Text only. No thumbnails. It is a navigation aid, not a preview.
  • No "Back to list" link. NavPill handles it.
  • Max-width: 90ch (matches prose).
  • Title max-width: 28ch with text-wrap: balance.
  • Only renders if at least one neighbor exists.

Decisions

DecisionWhy
No thumbnailsLightweight. A navigation aid at the end of reading, not a preview
Top border as the hover signalRestrained motion: minimal change, maximum clarity
Title in AleoSignals a structural element (navigation), not body
28ch max-width on the titleStops long titles from unbalancing the two columns