LastUpdated
This component is mainly used in conjunction with wrap/eject in Custom Theme , and is different from components that are directly imported in MDX. You can modify the styles and functions by passing component props or directly overriding the component. If you override the entire component through eject, please note that the reading of the corresponding configuration options of the component will become invalid and you need to control it yourself.
LastUpdated displays the page's last updated time. Typically used with the theme's lastUpdated configuration.
Usage
This component doesn't accept any props and automatically reads the last updated time from page metadata.
Related configuration
Enable lastUpdated in rspress.config.ts:
When lastUpdated is enabled, the component automatically reads and formats the page metadata.
To customize the display text or time format, you can export and modify theme/components/LastUpdated/index.tsx using rspress eject LastUpdated.