UNPKG

@mui/codemod

Version:
66 lines (65 loc) 1.35 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; var _CardHeader = _interopRequireDefault(require("@mui/material/CardHeader")); var _material = require("@mui/material"); var _jsxRuntime = require("react/jsx-runtime"); /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardHeader.default, { titleTypographyProps: { variant: 'h6' }, subheaderTypographyProps: { variant: 'body2' } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardHeader.default, { titleTypographyProps: { variant: 'h6' }, subheaderTypographyProps: { variant: 'body2' }, slotProps: { title: { variant: 'h1' }, subheader: { variant: 'h2' } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardHeader.default, { titleTypographyProps: { variant: 'h6' }, subheaderTypographyProps: { variant: 'body2' }, slotProps: { title: { sx: { color: 'red' } }, subheader: { sx: { color: 'red' } } } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CardHeader, { titleTypographyProps: { variant: 'h6' }, subheaderTypographyProps: { variant: 'body2' } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomCardHeader, { titleTypographyProps: { variant: 'h6' }, subheaderTypographyProps: { variant: 'body2' } });