react-admin-component
Version:
react library
10 lines • 739 B
JavaScript
import * as tslib_1 from "tslib";
import React from 'react';
import { Radio } from 'antd';
import classNames from 'classnames';
var RadioButton = function (props) {
var space = props.space, options = props.options, className = props.className, restProps = tslib_1.__rest(props, ["space", "options", "className"]);
return (React.createElement(Radio.Group, tslib_1.__assign({}, restProps, { className: classNames(className, { 'rac-radio-separate': !!space }) }), options.map(function (option) { return (React.createElement(Radio.Button, { style: tslib_1.__assign({}, (space && { marginRight: space })), value: option.key }, option.value || option.key)); })));
};
export default RadioButton;
//# sourceMappingURL=index.js.map