mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 17:04:58 +01:00
13 lines
395 B
JavaScript
13 lines
395 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import InputControl from './InputControl';
|
|
|
|
export default class TextControl extends React.Component {
|
|
|
|
render() {
|
|
let {onChange, initValue, onFocus} = this.props;
|
|
return <InputControl type='text'
|
|
defaultValue={initValue}
|
|
onChange={e => onChange(e.target.value)} onFocus={onFocus} />
|
|
}
|
|
}
|