-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { MDXComponents } from 'mdx/types' | ||
|
||
// This file allows you to provide custom React components | ||
// to be used in MDX files. You can import and use any | ||
// React component you want, including components from | ||
// other libraries. | ||
|
||
// This file is required to use MDX in `app` directory. | ||
export function useMDXComponents(components: MDXComponents): MDXComponents { | ||
return { | ||
// Allows customizing built-in components, e.g. to add styling. | ||
// h1: ({ children }) => <h1 style={{ fontSize: "100px" }}>{children}</h1>, | ||
...components, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters