Page Navigation
Prev/next navigation between pages, scroll buttons, and JSON-driven sidebar integration.
How It Works
The page navigation at the top and bottom of every demo page is generated automatically from config/sidebar.json.
Adding or reordering pages in the JSON updates all prev/next links across every page. No code changes needed.
sidebar.json Structure
Page Nav Partial
Include the partial in any view. It reads the JSON, finds the current page, and renders prev/next links.
Scroll Buttons
The floating scroll-to-top and scroll-to-bottom buttons are visible on the bottom-right of every page. They're included once in the layout and work automatically.
keyboard_arrow_up
Scroll to Top
keyboard_arrow_down
Scroll to Bottom
Features
- Automatically reads from sidebar.json - no hardcoded page lists
- Prev/next links at top and bottom of every demo page
- Dashboard page excluded (no prev/next on home)
- Floating scroll-to-top and scroll-to-bottom buttons
- Reusable partial - include in any page view
- Works with all theme modes