UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

6 lines (5 loc) 457 B
import type { ReactNode } from 'react'; import type { InferSchemaNode } from '../../core'; import type { AllowedValue, InferValueType, JsonSchema } from '../../types'; import type { FormProps } from './type'; export declare const createChildren: <Schema extends JsonSchema, Value extends AllowedValue = InferValueType<Schema>>(children: FormProps<Schema, Value>["children"] | undefined, jsonSchema: Schema, rootNode?: InferSchemaNode<Schema>) => ReactNode;