Files
memoir/mdx-components.ts
2025-09-06 19:19:45 +02:00

13 lines
333 B
TypeScript

import { useMDXComponents as getThemeComponents } from "nextra-theme-docs"; // nextra-theme-blog or your custom theme
// Get the default MDX components
const themeComponents = getThemeComponents();
// Merge components
export function useMDXComponents(components = {}) {
return {
...themeComponents,
...components,
};
}