UNPKG

koval-ui

Version:

React components collection with minimalistic design. Supports theming, layout, and input validation.

28 lines (27 loc) 573 B
"use client"; import { jsx as o } from "react/jsx-runtime"; import { useCallback as u } from "react"; /* empty css */ import { InputNumber as a } from "../../InputNumber/InputNumber.js"; const c = ({ onChange: e = () => { }, value: r, ...t }) => { const m = u( (n) => { e(String(Number(n.target.value) / 100)); }, [e] ); return /* @__PURE__ */ o( a, { ...t, onChange: m, value: Number(r) * 100, step: 0.01 } ); }; export { c as PercentageInput }; //# sourceMappingURL=PercentageInput.js.map