@cc98/react-ubb-editor
Version:
A ubb editor component based on react
16 lines (15 loc) • 597 B
TypeScript
import React from 'react';
import { ExtendValueType, ICustomComponentProps, IUBBExtendConfig } from '../types';
export interface IProps extends ICustomComponentProps {
extendConfig: IUBBExtendConfig | null;
}
export default class Extends extends React.PureComponent<IProps> {
handleFormSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
renderFormItem: (item: {
label: string;
key: string;
type: ExtendValueType;
}, config: IUBBExtendConfig) => JSX.Element;
renderContent: (config: IUBBExtendConfig) => React.ReactNode;
render(): JSX.Element;
}