import React from 'react'; import PropTypes from 'prop-types'; import {Checkbox, Label, LineInput} from '.'; /** * @ngdoc react * @name RadioButtonInput * @description Component to show radio-button */ export const RadioButtonInput: React.StatelessComponent = ({ field, value, onChange, label, options, readOnly, }) => ( ); RadioButtonInput.propTypes = { field: PropTypes.string, value: PropTypes.string, label: PropTypes.string, onChange: PropTypes.func.isRequired, options: PropTypes.array.isRequired, readOnly: PropTypes.bool, }; RadioButtonInput.defaultProps = { value: '', options: [], readOnly: false, };