Skip to content
masterclass Buddy

Next.js 16+ · Directive

mdx-components

mdx-components.tsx or mdx-components.js defines the components used by MDX. It is required for @next/mdx with the App Router.

Last updated

Since
v13.1.2

Syntax

export function useMDXComponents(): MDXComponents { return components }

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • @next/mdx
  • MDXComponents
  • useMDXComponents
  • MDX
  • App Router

Source: mdx-components.js. Checked 2026-11-03.