@focuson/form_components
Version:
Components that can be used by @focuson/forms
10 lines (9 loc) • 593 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CheckboxAndNumber = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const labelAndInput_1 = require("./labelAndInput");
function CheckboxAndNumber(props) {
return (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)(labelAndInput_1.LabelAndBooleanInput, Object.assign({}, props, { allButtons: {} })), (0, jsx_runtime_1.jsx)("input", { className: 'input', type: 'number', value: props.number.optJsonOr(0), readOnly: true })] });
}
exports.CheckboxAndNumber = CheckboxAndNumber;