LastUpdated 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.
LastUpdated displays the last update time of the current page.
Usage
index.mdx
This component does not accept any props. It automatically reads the last update time from the page metadata.
Related configuration
Enable lastUpdated in rspress.config.ts:
rspress.config.ts
When lastUpdated is enabled, the component will automatically read and format the page metadata for display.
To customize the label or formatting, run rspress eject LastUpdated and edit theme/components/LastUpdated/index.tsx.
Tip
If lastUpdated: true is not configured in the default theme, install and register @rspress/plugin-last-updated.