UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

22 lines (21 loc) 913 B
import { AnyComponentSchema } from '@open-formulieren/types'; import { ComponentEvent } from './types'; export interface FormioDefinitionDesignerProps { /** * The components to display in the designer. * * This is used as the initial value for local form designer state management, later * updates are ignored. */ initialComponents: AnyComponentSchema[]; /** * Callback function that is called when the components have been changed. * * The `event` is an optional argument that is only present when a component is * created, updated, or deleted. For other change events (i.e. dragging components * around), this argument is not present. */ onChange: (components: AnyComponentSchema[], event?: ComponentEvent) => void; } declare const FormioDefinitionDesigner: React.FC<FormioDefinitionDesignerProps>; export default FormioDefinitionDesigner;