@mui/codemod
Version:
Codemod scripts for Material UI.
53 lines (51 loc) • 1.16 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _Rating = _interopRequireDefault(require("@mui/material/Rating"));
var _material = require("@mui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Rating.default, {
slotProps: {
icon: {
component: CustomIconContainer
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Rating, {
slotProps: {
icon: {
component: CustomIconContainer
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Rating.default, {
slots: {
root: 'div'
},
slotProps: {
icon: {
component: CustomIconContainer
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Rating, {
slots: {
...outerSlots
},
slotProps: {
icon: {
component: CustomIconContainer
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Rating.default, {
slotProps: {
icon: {
id: 'my-rating-icon',
component: CustomIconContainer
}
}
});
// should skip non MUI components
/*#__PURE__*/(0, _jsxRuntime.jsx)(NonMuiRating, {
IconContainerComponent: CustomIconContainer
});