diff --git a/src/layouts/react-component-layout.tsx b/src/layouts/react-component-layout.tsx index 26d35363f..b7dced909 100644 --- a/src/layouts/react-component-layout.tsx +++ b/src/layouts/react-component-layout.tsx @@ -57,6 +57,10 @@ export const query = graphql` required deprecated } + passthrough { + element + url + } subcomponents { name props { @@ -67,6 +71,10 @@ export const query = graphql` required deprecated } + passthrough { + element + url + } } } @@ -77,7 +85,7 @@ export const query = graphql` ` export default function ReactComponentLayout({data}) { - const {name, status, a11yReviewed, importPath, props: componentProps, subcomponents, stories} = data.reactComponent + const {name, status, a11yReviewed, importPath, passthrough, props: componentProps, subcomponents, stories} = data.reactComponent // This is a temporary and very hacky fix to make sure TooltipV2 has the correct component name in the import path. // We will remove this once https://github.com/primer/react/pull/4483 is merged and release. let componentName = name @@ -252,11 +260,11 @@ export default function ReactComponentLayout({data}) {