Member Junction
    Preparing search index...
    • Wraps a React element in loaded component libraries' theme providers so their built-in components inherit the MJ theme (including dark mode). Currently themes Ant Design via ConfigProvider when the antd library is loaded; otherwise returns the element unchanged. Because ConfigProvider supplies React context, one wrap at the root themes every antd component in the subtree — including those inside child components. libraries is keyed by global-variable name (e.g. antd).

      A generated component that also wraps its own ConfigProvider simply nests under this one (antd merges nested configs), so this is safe alongside component-level theming.

      Parameters

      • React: {
            createElement: (
                type: unknown,
                props: unknown,
                ...children: unknown[],
            ) => unknown;
        }
      • element: unknown
      • libraries: Record<string, unknown> | undefined
      • styles: Partial<ComponentStyles> | undefined

      Returns unknown