UNPKG

@mui/codemod

Version:
41 lines (40 loc) 741 B
"use strict"; var _jsxRuntime = require("react/jsx-runtime"); // No import statements — components are auto-imported /*#__PURE__*/(0, _jsxRuntime.jsx)(Box, { sx: { display: "flex", gap: 2, p: 3 }, children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Typography, { sx: { fontSize: 14, fontWeight: 600 }, children: "Hello" }) }); /*#__PURE__*/(0, _jsxRuntime.jsx)(Stack, { direction: "row", spacing: 2, sx: { mt: 1 } }); /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, { color: "inherit", href: "https://mui.com/", sx: { mb: 2 }, children: "MUI" }); const sx = { display: 'flex' }; /*#__PURE__*/(0, _jsxRuntime.jsx)(Box, { sx: [{ m: 2 }, ...(Array.isArray(sx) ? sx : [sx])] });