@difizen/magent-au
Version:
32 lines • 810 B
JavaScript
import { InputNumber, Slider } from 'antd';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export var DecimalStep = function DecimalStep(props) {
var min = props.min,
max = props.max,
step = props.step,
value = props.value,
onChange = props.onChange;
return /*#__PURE__*/_jsxs("div", {
className: "flex justify-between",
children: [/*#__PURE__*/_jsx(Slider, {
style: {
flex: 1
},
min: min,
max: max,
step: step,
onChange: onChange,
value: typeof value === 'number' ? value : 0
}), /*#__PURE__*/_jsx(InputNumber, {
style: {
marginLeft: '8px'
},
min: min,
max: max,
step: step,
value: value,
onChange: onChange
})]
});
};