PrevNextPage eject-only
Warning
This component is an eject-only component, specifically designed for wrap/eject, and it's not recommended to be used directly in MDX files.
PrevNextPage renders previous/next navigation links at the bottom of the page.
Usage
index.mdx
This component does not accept any props. It automatically calculates the previous/next page links based on the sidebar order.
How it works
The component internally uses the usePrevNextPage hook to get the previous and next page information:
- Previous/next pages are automatically calculated based on the current page's position in the sidebar
- If the current page is the first page,
prevPagewill benull - If the current page is the last page,
nextPagewill benull