geostyler
Version:
Framework for styling geodata
30 lines (29 loc) • 579 B
JavaScript
import { jsx as a } from "react/jsx-runtime";
import { NumberExpressionInput as i } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js";
const s = ({
onChange: e,
value: o,
...t
}) => {
function r() {
e(t.defaultValue ? Number(t.defaultValue) : void 0);
}
return /* @__PURE__ */ a(
i,
{
className: "editor-field contrast-field",
value: o,
onChange: e,
onCancel: r,
inputProps: {
...t,
min: 0,
max: 1,
step: 0.1
}
}
);
};
export {
s as ContrastField
};