Skip to content
Discussion options

You must be logged in to vote

This is likely the problem: you are overriding the Details component we use when rendering MDX details elements.

import MDXComponents from '@theme-original/MDXComponents';
import CodeBlock from '@theme-original/CodeBlock';
import Details from '@theme-original/Details';
import Tabs from '@theme-original/Tabs';
import TabItem from '@theme-original/TabItem';

export default {
  // Re-use the default mapping
  ...MDXComponents,
  Details: Details,
  CodeBlock: CodeBlock,
  Tabs: Tabs,
  TabItem: TabItem,
  Admonition: MDXComponents.admonition,
};

The built-in one is different:

import MDXDetails from '@theme/MDXComponents/Details';

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@slorber
Comment options

slorber Jul 8, 2025
Collaborator

@asher-floyd
Comment options

@slorber
Comment options

slorber Jul 8, 2025
Collaborator

Answer selected by asher-floyd
@asher-floyd
Comment options

@asher-floyd
Comment options

@slorber
Comment options

slorber Jul 9, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants