UNPKG

@uiw-admin/components

Version:
19 lines 658 B
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["option"]; import React from 'react'; import { Checkbox } from 'uiw'; import { jsx as _jsx } from "react/jsx-runtime"; var FormCheckBox = _ref => { var { option } = _ref, others = _objectWithoutPropertiesLoose(_ref, _excluded); return /*#__PURE__*/_jsx(Checkbox.Group, _extends({}, others, { children: option && option.map(opt => /*#__PURE__*/_jsx(Checkbox, { value: opt.value, children: opt.label }, opt.value)) })); }; export default FormCheckBox;