@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
12 lines (11 loc) • 543 B
TypeScript
import { type ComponentType } from 'react';
import type { SchemaNodeProxyProps } from '../../../../components/SchemaNode/SchemaNodeProxy';
import { type SchemaNode } from '../../../../core';
import type { ChildNodeComponent } from '../type';
/**
* Create child node components for the given SchemaNode
* @param node - SchemaNode
* @param NodeProxy - SchemaNodeProxy
* @returns ChildNodeComponent[]
*/
export declare const useChildNodeComponents: (node: SchemaNode, NodeProxy: ComponentType<SchemaNodeProxyProps>) => ChildNodeComponent[];