UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

20 lines (19 loc) 853 B
/// <reference types="react" /> import { ComponentLabelProps } from './component-label'; export interface CommonInputProps extends ComponentLabelProps { name: string; description?: React.ReactNode; } export interface MultipleProps<P extends {}, T extends unknown> { as: React.ComponentType<P>; defaultValue: T; } declare const Multiple: <P extends {}, T>(props: MultipleProps<P, T> & CommonInputProps) => import("react/jsx-runtime").JSX.Element; export interface WithMultipleProps { multiple?: boolean; } /** * Wrap a given component into a higher order Multiple component. */ export declare function withMultiple<P extends CommonInputProps, T extends unknown = unknown>(WrappedComponent: React.ComponentType<P>, defaultValue: T): (props: WithMultipleProps & P) => import("react/jsx-runtime").JSX.Element; export default Multiple;