hrw-certificate-editor
Version:
Design Editor Tools with React.js + ant.design + fabric.js
27 lines (26 loc) • 927 B
TypeScript
export default InputTemplate;
declare class InputTemplate extends React.Component<any, any, any> {
static propTypes: {
defaultValue: PropTypes.Requireable<string>;
value: PropTypes.Requireable<string>;
width: PropTypes.Requireable<string | number>;
height: PropTypes.Requireable<string | number>;
showLineNumbers: PropTypes.Requireable<boolean>;
newLineMode: PropTypes.Requireable<boolean>;
disabled: PropTypes.Requireable<boolean>;
};
static defaultProps: {
width: string;
height: string;
showLineNumbers: boolean;
newLineMode: boolean;
disabled: boolean;
};
constructor(props: any);
constructor(props: any, context: any);
onChange: (value: any) => void;
aceRef: ReactAce;
}
import React from "react";
import ReactAce from "react-ace";
import PropTypes from "prop-types";