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

7 lines (6 loc) 401 B
import { type ForwardedRef, type ReactNode } from 'react'; import type { AllowedValue, InferValueType, JsonSchema } from '../../types'; import type { FormHandle, FormProps } from './type'; export declare const Form: <Schema extends JsonSchema, Value extends AllowedValue = InferValueType<Schema>>(props: FormProps<Schema, Value> & { ref?: ForwardedRef<FormHandle<Schema, Value>>; }) => ReactNode;