nextra-theme-docs breaking changes
Updated December 4, 2026
On this page
Latest version 4.6.1, released December 4, 2025. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
nextra-theme-docs 4.0.0 breaking changes
- Removed
Nextra 4 exclusively uses Next.js App Router. Pages Router sites must migrate to App Router. - Removed
Bleed
Bleed was removed in nextra-theme-docs 4.0.0 npmjs.com - Removed
Collapse
Import Collapse from nextra/components instead of nextra-theme-docs. npmjs.com - Removed
components
Provide custom MDX components through useMDXComponents instead. - Removed
default
default was removed in nextra-theme-docs 4.0.0 npmjs.com - Removed
Details
Import Details from nextra/components instead. - Removed
direction
Set the dir attribute on the html tag instead. - Removed
DocsThemeConfig
DocsThemeConfig was removed in nextra-theme-docs 4.0.0 npmjs.com - Removed
draft
Use display: 'hidden' in an _meta file instead of draft: true in front matter. - Removed
getComponents
getComponents was removed in nextra-theme-docs 4.0.0 npmjs.com - Removed
head
Use the Head component or the Next.js Metadata API for head tags. - Removed
newWindow
The newWindow field in _meta files was removed. - Removed
react-cusdis
The optional react-cusdis peer dependency was removed; the blog uses the Cusdis SDK directly. - Removed
Select
Import Select from nextra/components instead. - Removed
SkipNavContent
SkipNavContent was removed in nextra-theme-docs 4.0.0 npmjs.com - Removed
SkipNavLink
SkipNavLink was removed in nextra-theme-docs 4.0.0 npmjs.com - Removed
Summary
Import Summary from nextra/components instead. - Removed
theme
The theme option was removed; pass theme settings as component props instead. - Removed
theme.bottomContent
The theme.bottomContent field was removed. - Removed
theme.config
Theme options must now be passed as props to the layout components in app/layout.jsx. - Removed
theme.layout
To create pages without a layout, use page.{jsx,tsx} files instead. - Removed
theme.topContent
The theme.topContent field was removed. - Removed
themeConfig
The themeConfig option was removed; pass theme settings as component props instead. - Renamed
Overridden theme classes must use the x: prefix instead of _. - Renamed
Search
Import Search from nextra/components instead of nextra-theme-docs. - Behavior changed
External links declared in _meta files now open in a new tab with rel noreferrer and an icon. - Behavior changed
Front matter is exported as a metadata object; a file cannot use both front matter and an exported metadata object. - Behavior changed
Remote docs setup has changed; follow the official example and update the pageMap in the layout file. - Behavior changed
The docs folder plus docs.mdx layout is incompatible with the page file convention; use asIndexPage instead. - Behavior changed
_meta files should be server component files without the 'use client' directive. - Behavior changed
Sidebar titles are now chosen from _meta title, then sidebarTitle, then title, then the first h1. - Behavior changed
Search indexing now uses Pagefind and must run after the build via a postbuild script. - Configuration changed
mdxOptions
Custom remark, rehype and recma plugins are functions and cannot be passed to nextra options with Turbopack. - Signature changed
Link
Was const Link: ({href, className, ...props}: AnchorProps) => react_jsx_runtime.JSX.Element; now const Link: typeof Anchor. npmjs.com - Signature changed
LocaleSwitch
Was function LocaleSwitch({lite, className}: LocaleSwitchProps): ReactElement | null; now const LocaleSwitch: FC<LocaleSwitchProps>. npmjs.com - Signature changed
Navbar
Was function Navbar({items}: NavBarProps): ReactElement; now const Navbar: FC<NavbarProps>. npmjs.com - Signature changed
NotFoundPage
Was function NotFoundPage(): ReactElement | null; now const NotFoundPage: FC<NotFoundPageProps>. npmjs.com - Signature changed
ThemeSwitch
Was function ThemeSwitch({lite, className}: ThemeSwitchProps): ReactElement; now const ThemeSwitch: FC<ThemeSwitchProps>. npmjs.com - Signature changed
useConfig
Was function useConfig<FrontMatterType = FrontMatter>(): Config<FrontMatterType>; now function useConfig(): {normalizePagesResult: {activeType?: string; activeIndex: number; activeThemeContext: {breadcrumb?: boolean | undefined... npmjs.com - Signature changed
useMenu
Was const useMenu: () => Menu; now const useMenu: () => boolean. npmjs.com - Signature changed
useThemeConfig
Was const useThemeConfig: () => {banner: {dismissible: boolean; key: string; content?: ReactNode | react.FC;}; backgroundColor: {dark: string; light: string;}; chat: {icon?: ReactNode | react.FC; link?: string | undefined;}; darkMode... npmjs.com
nextra-theme-docs 4.0.0-app-router.29 breaking changes
- Removed
color-primary-750
The color-primary-750 theme color variant was removed. github.com - Renamed
Builtin CSS classes changed from the _ prefix to the x: prefix. github.com
nextra-theme-docs 4.0.0-app-router.27 breaking changes
- Removed
collectCatchAllRoutes
collectCatchAllRoutes was removed. github.com - Removed
createCatchAllMeta
createCatchAllMeta was removed from nextra/catch-all. github.com - Removed
normalizePageRoute
normalizePageRoute was removed. github.com - Signature changed
getPageMap
getPageMap now takes only a root argument, not lang and route. github.com
nextra-theme-docs 4.0.0-app-router.25 breaking changes
- Renamed
useTOC
Export a toc array instead of a useTOC function. github.com - Behavior changed
compileMdx
compileMdx from nextra/compile returns a string instead of an object. github.com
nextra-theme-docs 4.0.0-app-router.21 breaking changes
- Renamed
RemoteContent
RemoteContent was removed from nextra/components and renamed to MDXRemote in nextra/mdx-remote. github.com
nextra-theme-docs 4.0.0-app-router.20 breaking changes
- Removed
Td
Use Table.Td instead of the Td export. github.com - Removed
Th
Use Table.Th instead of the Th export. github.com - Removed
Tr
Use Table.Tr instead of the Tr export. github.com
Older versions
9 older versions, each with its first changes. Sign up to see every change
Show 9 older versions
nextra-theme-docs 4.0.0-app-router.18 breaking changes
- Renamed
useContentDir
Use the contentDirBasePath option instead of useContentDir. github.com
nextra-theme-docs 4.0.0-app-router.14 breaking changes
- Default changed
Navbar.logo
The logo prop is now required and must be passed explicitly. github.com - Configuration changed
Set moduleResolution to bundler in tsconfig.json if using TypeScript. github.com
nextra-theme-docs 4.0.0-app-router.13 breaking changes
- Removed
The theme now requires Next.js v15 or later. github.com - Removed
nextra.context
The nextra/context module was removed. github.com
And 2 more in this version.
nextra-theme-docs 4.0.0-app-router.9 breaking changes
- Behavior changed
You must now import the theme style.css file manually in your project. github.com
nextra-theme-docs 4.0.0-app-router.7 breaking changes
- Removed
nextraConfig.mdxOptions.providerImportSource
Use the mdx-components file instead of this option. github.com - Renamed
nextraConfig.mdxBaseDir
Replace the mdxBaseDir string with the useContentDir boolean. github.com
nextra-theme-docs 4.0.0-app-router.4 breaking changes
- Removed
i18n.direction
The i18n.direction option was removed. github.com - Renamed
gitTimestamp
Use the lastUpdated option instead of gitTimestamp. github.com
And 2 more in this version.
nextra-theme-docs 4.0.0-app-router.3 breaking changes
- Removed
Details
Import Details from nextra/components instead of nextra-theme-docs. github.com - Removed
renderComponent
renderComponent was removed. github.com
And 1 more in this version.
nextra-theme-docs 4.0.0-app-router.2 breaking changes
- Removed
editLink.component
The editLink.component option was removed; stop passing it. github.com - Removed
feedback.useLink
The feedback.useLink option was removed; stop passing it. github.com
And 5 more in this version.
nextra-theme-docs 3.0.0 breaking changes
- Removed
_meta.json
Use _meta.js, _meta.jsx, _meta.ts or _meta.tsx instead of _meta.json. github.com - Removed
Callout
Import Callout from nextra/components instead. npmjs.com
And 36 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.