export interface ICodeAreaProps { /** * width of component * default is "100%" */ maxWidth?: string; /** * minimal height of component * default is "400px" */ minHeight?: string; /** * standard onChange that returns the entire event, as normal you can access event.target */ onChange?: (event: React.ChangeEvent) => void; /** * Custom JSX component inside header */ headerComponent?: React.ReactNode; /** * please add the text you want to show in the codearea */ text: string; /** * if true disabled editing of the text content * standard prop for textarea */ disabled?: boolean; } export interface ILineNumbersProps { /** * current value */ currentValue: string; }