MCPcopy Create free account
hub / github.com/api-platform/website / useMDXComponents

Function useMDXComponents

pwa/mdx-components.tsx:1–9  ·  view source on GitHub ↗
(components: {
  [component: string]: React.ComponentType;
})

Source from the content-addressed store, hash-verified

1export function useMDXComponents(components: {
2 [component: string]: React.ComponentType;
3}) {
4 return {
5 // Allows customizing built-in components, e.g. to add styling.
6 // h1: ({ children }) => <h1 style={{ fontSize: "100px" }}>{children}</h1>,
7 ...components,
8 };
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected