PrevNextPage eject-only
Warning
This is an eject-only component, designed specifically for wrap/eject, and is not recommended for direct use 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