geostyler
Version:
Framework for styling geodata
28 lines (27 loc) • 540 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { NumberExpressionInput as r } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js";
const f = ({
onChange: t,
value: i,
...e
}) => {
function l() {
t(e.defaultValue ? Number(e.defaultValue) : void 0);
}
return /* @__PURE__ */ o(
r,
{
className: "editor-field repeat-field",
value: i,
onChange: t,
onCancel: l,
inputProps: {
...e,
min: 0
}
}
);
};
export {
f as RepeatField
};