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