UNPKG

@crave/farmblocks-input-select

Version:
18 lines (17 loc) 800 B
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import React from "react"; import PropTypes from "prop-types"; import TagsWrapper from "../styledComponents/TagsWrapper"; const InputWithTags = /*#__PURE__*/React.forwardRef(({ children, ...props }, ref) => /*#__PURE__*/React.createElement(TagsWrapper, { className: "tagsWrapper" }, children, /*#__PURE__*/React.createElement("input", _extends({}, props, { size: "1", ref: ref })))); InputWithTags.propTypes = { children: PropTypes.node }; export default InputWithTags;