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.
SubscribeRelated
@next/mdxMDXComponentsuseMDXComponentsMDXApp Router