rjsf-antd
Version:
Ant Design theme, fields and widgets for react-jsonschema-form
13 lines • 590 B
JavaScript
import { __assign, __rest } from "tslib";
import React from 'react';
import { Rate } from 'antd';
var RateWidget = function (_a) {
var options = _a.options, value = _a.value, disabled = _a.disabled, onChange = _a.onChange;
var _b = options.count, count = _b === void 0 ? 5 : _b, rest = __rest(options, ["count"]);
var _onChange = function (value) {
onChange(value);
};
return (React.createElement(Rate, __assign({ onChange: _onChange, value: value, count: count, disabled: disabled }, rest)));
};
export default RateWidget;
//# sourceMappingURL=RateWidget.js.map