/**
* RadioButton component.
*
* @component
* @example
* // Usage:
*
*
* @param {Object} props - The component props.
* @param {string} props.title - The title of the radio button.
* @param {string} [props.desc] - The description of the radio button.
* @param {string} [props.size="small"] - The size of the radio button.
* @returns {JSX.Element} - The rendered RadioButton component.
*/
import { FormControlLabel, Radio } from "@mui/material";
import React from "react";
import "./index.css";
import PropTypes from "prop-types";
function RadioButton(props) {
return (
}
onChange={props.onChange}
label={
{props.title}
{props.desc}
}
labelPlacement="end"
/>
);
}
RadioButton.propTypes = {
title: PropTypes.string.isRequired,
desc: PropTypes.string,
size: PropTypes.string,
};
export default RadioButton;