diff options
author | Yasutake Yohei <yohei@yasutakeyohei.com> | 2023-12-30 22:24:55 +0900 |
---|---|---|
committer | Yasutake Yohei <yohei@yasutakeyohei.com> | 2023-12-30 22:24:55 +0900 |
commit | 3fc0ee1b72c12922254533b78695ffa17e7232be (patch) | |
tree | f92d871e6720670f3fa98d9e28b9396a894d9135 /src/theme | |
parent | e18d8441d03746158a72029381d8fbdee39184b3 (diff) |
initial commit
Diffstat (limited to 'src/theme')
-rw-r--r-- | src/theme/MDXComponents.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/theme/MDXComponents.js b/src/theme/MDXComponents.js new file mode 100644 index 00000000..5af587d9 --- /dev/null +++ b/src/theme/MDXComponents.js @@ -0,0 +1,12 @@ +import React from 'react'; +// Import the original mapper +import MDXComponents from '@theme-original/MDXComponents'; +import MessageBubble from '@site/src/components/MessageBubble'; + +export default { + // Re-use the default mapping + ...MDXComponents, + // Map the "<MessageBubble>" tag to our MessageBubble component + // `MessageBubble` will receive all props that were passed to `<MessageBubble>` in MDX + MessageBubble, +};
\ No newline at end of file |