envoc-form
Version:
Envoc form components
22 lines (21 loc) • 931 B
JavaScript
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
import SelectGroup from './SelectGroup';
/** A `<SelectGroup/>` dropdown with values as numbers. Many options can be selected at a time. */
export function MultiNumberSelectGroup(props) {
return _jsx(SelectGroup, __assign({ multiple: true }, props));
}
/** A `<SelectGroup/>` dropdown with values as numbers. Only one option can be selected at a time. */
export function SingleNumberSelectGroup(props) {
return _jsx(SelectGroup, __assign({ multiple: false }, props));
}