mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-21 23:23:43 +00:00
feat(docs): add mdx-components for Nextra theme
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { useMDXComponents as getThemeComponents } from "nextra-theme-docs";
|
||||
import type { MDXComponents } from "nextra/mdx-components";
|
||||
|
||||
const themeComponents = getThemeComponents();
|
||||
|
||||
export function useMDXComponents(components: MDXComponents = {}): MDXComponents {
|
||||
return {
|
||||
...themeComponents,
|
||||
...components,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user