UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

17 lines 540 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.modifyInputNumberValue = void 0; const modifyInputNumberValue = ({ value, min, max, maxLength, }) => { if (min && Number(value) < min) { return true; } else if (max && Number(value) > max) { return true; } else if (maxLength && String(value).length > maxLength) { return true; } return false; }; exports.modifyInputNumberValue = modifyInputNumberValue; //# sourceMappingURL=modifyInputNumberValue.js.map