Astro SSR Pagination Example
This demo uses astro-headless-ui’s <Paginate>, <Pagination>, and <Breadcrumb> components
Features:
- Paginate data in SSR, (similar to SSG's
paginate() function from getStaticPaths())
- Include index on paginated route
- Compatible with customizable link navigation for pages
- Use a slot function as a render template for pages
- Use a page numer as a named slot to target a page for alternative render
- Render an 'error' slot when viewing page numbers that dont exist
- Breadcrumb for easy backwards navigation
Demo
Documentation
Code Example