@nish1896/rhf-mui-components
Version:
A suite of 20+ reusable Material UI components for React Hook Form to minimize your time and effort in creating and styling forms
7 lines (6 loc) • 395 B
JavaScript
import { jsxs as _jsxs } from "react/jsx-runtime";
import Button from '@mui/material/Button';
const UploadButton = ({ label, fieldName, disabled, children }) => {
return (_jsxs(Button, { id: fieldName, component: "label", role: undefined, variant: "contained", tabIndex: -1, disabled: disabled, sx: { textTransform: 'none' }, children: [label, children] }));
};
export default UploadButton;