@mui/codemod
Version:
Codemod scripts for Material UI.
45 lines (44 loc) • 1.04 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _Switch = _interopRequireDefault(require("@mui/material/Switch"));
var _material = require("@mui/material");
var _jsxRuntime = require("react/jsx-runtime");
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, {
inputProps: {
'aria-label': 'Switch'
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, {
inputRef: ref
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, {
inputProps: {
'aria-label': 'Switch'
},
inputRef: ref
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, {
inputProps: {
'aria-label': 'Switch'
},
inputRef: ref,
slotProps: {
root: {
id: 'test'
}
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Switch, {
inputProps: {
'aria-label': 'Switch'
}
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Switch, {
inputRef: ref
});
/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Switch, {
inputProps: {
'aria-label': 'Switch'
},
inputRef: ref
});