@nish1896/rhf-mui-components
Version:
A suite of 20+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.
18 lines (17 loc) • 480 B
JavaScript
import { jsxs } from "react/jsx-runtime";
import Button from "@mui/material/Button";
//#region src/mui/file-uploader/components/UploadButton.tsx
const UploadButton = ({ label, fieldName, disabled, children }) => {
return /* @__PURE__ */ jsxs(Button, {
id: fieldName,
component: "label",
role: void 0,
variant: "contained",
tabIndex: -1,
disabled,
sx: { textTransform: "none" },
children: [label, children]
});
};
//#endregion
export { UploadButton as default };