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 u = ({
onChange: i,
value: d,
...e
}) => {
function l() {
i(e.defaultValue ? Number(e.defaultValue) : void 0);
}
return /* @__PURE__ */ o(
r,
{
className: "editor-field radius-field",
value: d,
onChange: i,
onCancel: l,
inputProps: {
...e,
min: 0
}
}
);
};
export {
u as RadiusField
};