@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
11 lines (10 loc) • 346 B
JavaScript
//#region src/input/helpers.ts
/** Returns length of the initial input's value. */
function getInitialCount(props) {
const { defaultValue, value } = props;
return defaultValue?.toString().length ?? value?.toString().length ?? 0;
}
//#endregion
export { getInitialCount };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=helpers.js.map