Pagination
Previous and next links for a linear docs or settings sequence. Not a numbered page list.
Default
Pass previous and next as { title, href }. Either side may be omitted.
Previous
1
<Pagination :previous="{ title: 'Menu', href: '/menu' }" />
Next
1
<Pagination :next="{ title: 'Note', href: '/note' }" />
Best practices
- This control is for a path the user walks in order — docs, onboarding, a wizard. A table with many pages needs a different pattern.
titleis the destination page name, Title Case, not “Previous page”. The word Previous / Next is already in the chrome.- Omit the side that does not exist. Do not invent a disabled link back to the same URL.
- Keep titles short enough to truncate cleanly. The row caps each side at half the width.
hrefshould be a real route. This component renders anchors, not buttons, so it is for navigation only.