🚧 Rspress 2.0 document is under development
close

DocFooter eject-only

Warning

This is an eject-only component, designed specifically for wrap/eject, and is not recommended for direct use in MDX files

DocFooter renders the footer area at the bottom of document pages, including edit link, last updated time, and previous/next page navigation.

Usage

This component is automatically rendered at the bottom of document pages and usually does not need to be used manually. To customize, you can eject it:

theme/components/DocFooter/index.tsx
import { EditLink, LastUpdated, PrevNextPage } from '@rspress/core/theme';

export function DocFooter() {
  return (
    <footer className="my-doc-footer">
      <EditLink />
      <LastUpdated />
      <PrevNextPage />
      {/* Add custom content */}
    </footer>
  );
}

Included components

DocFooter is composed of the following components: