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

12 lines (11 loc) 619 B
import { type PropsWithChildren } from 'react'; import type { FormProps } from '../../components/Form'; import type { AttachedFilesMap } from '../../types'; interface UserDefinedContextProviderProps { /** File map, used to attach files for each input */ attachedFilesMap: AttachedFilesMap; /** User-defined context, merged with global user-defined context */ context: FormProps['context']; } export declare const WorkspaceContextProvider: ({ attachedFilesMap, context: inputContext, children, }: PropsWithChildren<UserDefinedContextProviderProps>) => import("react/jsx-runtime").JSX.Element; export {};