@undermuz/react-json-form
Version:
Generate JSON-based forms with react
14 lines (11 loc) • 804 B
TypeScript
import * as react from 'react';
import { PropsWithChildren, FC } from 'react';
import { IFormFieldCustomProps } from '../flat-form/FormField.js';
import { e as IInput } from '../types-4491bbaa.js';
import '@undermuz/use-form';
type TypeCustomComponentProps = PropsWithChildren & IInput & IFormFieldCustomProps;
type TypeCustomComponent = FC<TypeCustomComponentProps>;
declare const CustomComponentsContext: react.Context<Record<string, TypeCustomComponent> | null>;
declare const useJsonFormCustomComponents: () => Record<string, TypeCustomComponent> | null;
declare const useJsonFormCustomComponent: (name: string) => TypeCustomComponent | null;
export { TypeCustomComponent, TypeCustomComponentProps, CustomComponentsContext as default, useJsonFormCustomComponent, useJsonFormCustomComponents };