@s-ui/react-atom-input
Version:
> Inputs are the text fields that users fill in with different types of information. These include dates, passwords or even short answers. It’s a field where users can write alphanumeric texts.
19 lines • 670 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["inputRef", "value", "size"];
import { IMaskMixin } from 'react-imask';
import Input from '../Input/index.js';
import { jsx as _jsx } from "react/jsx-runtime";
var IMask = IMaskMixin(function (_ref) {
var inputRef = _ref.inputRef,
value = _ref.value,
size = _ref.size,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
return /*#__PURE__*/_jsx(Input, _extends({
type: "text",
ref: inputRef,
size: size,
value: value
}, props));
});
export default IMask;