Repository URL to install this package:
|
Version:
0.4.9 ▾
|
import React from "react";
import "./TextInput.css";
var TextInput = function TextInput(_ref) {
var _ref$type = _ref.type,
type = _ref$type === void 0 ? "text" : _ref$type,
label = _ref.label,
value = _ref.value,
_onChange = _ref.onChange;
return React.createElement("div", {
className: "simple-form-group"
}, label && React.createElement("label", {
className: "simple-text-label"
}, label), React.createElement("input", {
type: type,
className: "simple-text-input",
value: value,
onChange: function onChange(e) {
return _onChange && _onChange(e.target.value);
}
}));
};
export default TextInput;
//# sourceMappingURL=TextInput.js.map