MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / withContextToLayoutProps

Function withContextToLayoutProps

packages/react/src/JsonFormsContext.tsx:527–536  ·  view source on GitHub ↗
(
  Component: ComponentType<LayoutProps>
)

Source from the content-addressed store, hash-verified

525 };
526
527const withContextToLayoutProps = (
528 Component: ComponentType<LayoutProps>
529): ComponentType<OwnPropsOfJsonFormsRenderer> =>
530 function WithContextToLayoutProps({
531 ctx,
532 props,
533 }: JsonFormsStateContext & LayoutProps) {
534 const layoutProps = ctxToLayoutProps(ctx, props);
535 return <Component {...props} {...layoutProps} />;
536 };
537
538const withContextToOneOfProps = (
539 Component: ComponentType<CombinatorRendererProps>

Callers 1

withJsonFormsLayoutPropsFunction · 0.85

Calls 1

ctxToLayoutPropsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…