diff --git a/www/packages/docs-ui/src/components/CodeTabs/index.tsx b/www/packages/docs-ui/src/components/CodeTabs/index.tsx index 419dea3cd9ed5..0e460b5692acf 100644 --- a/www/packages/docs-ui/src/components/CodeTabs/index.tsx +++ b/www/packages/docs-ui/src/components/CodeTabs/index.tsx @@ -117,8 +117,8 @@ export const CodeTabs = ({ if ( typeof codeBlock.type !== "string" && - "name" in codeBlock.type && - codeBlock.type.name === "CodeBlock" + (("name" in codeBlock.type && codeBlock.type.name === "CodeBlock") || + "source" in codeBlockProps) ) { codeBlockProps = { ...codeBlockProps,