@visactor/react-vtable
Version:
The react version of VTable
17 lines (16 loc) • 558 B
TypeScript
import type { ReactElement } from 'react';
import React from 'react';
export interface BaseComponentProps {
id?: string | number;
children?: React.ReactNode;
}
type ComponentProps = BaseComponentProps & {
updateId?: number;
componentId?: string;
componentIndex?: number;
};
export declare const createComponent: <T extends ComponentProps>(componentName: string, optionName: string, supportedEvents?: Record<string, string> | null, isSingle?: boolean) => {
(props: T): React.ReactElement | null;
displayName: string;
};
export {};