@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.
12 lines (11 loc) • 459 B
JavaScript
import muiPackage from "@mui/material/package.json";
//#region src/utils/mui.ts
/**
* After migrating from MUI v5 to v6, some of the props like "InputProps"
* for Textfield have been marked as deprecated and will likely be removed
* in future versions. This flag is ensures that no deprecated props are
* being passed to any of the components in v6 or above.
*/
const isAboveMuiV5 = !muiPackage.version.startsWith("5.");
//#endregion
export { isAboveMuiV5 };