Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
This uploader supports multiple file upload.
Submit
~
var
www
uibuilder.cmshelp.dk
httpdocs
node_modules
@mui
system
esm
createBox
File Content:
createBox.js
'use client'; import * as React from 'react'; import clsx from 'clsx'; import styled from '@mui/styled-engine'; import styleFunctionSx, { extendSxProp } from "../styleFunctionSx/index.js"; import useTheme from "../useTheme/index.js"; import { jsx as _jsx } from "react/jsx-runtime"; export default function createBox(options = {}) { const { themeId, defaultTheme, defaultClassName = 'MuiBox-root', generateClassName } = options; const BoxRoot = styled('div', { shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as' })(styleFunctionSx); const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) { const theme = useTheme(defaultTheme); const { className, component = 'div', ...other } = extendSxProp(inProps); return /*#__PURE__*/_jsx(BoxRoot, { as: component, ref: ref, className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName), theme: themeId ? theme[themeId] || theme : theme, ...other }); }); return Box; }
Edit
Download
Unzip
Chmod
Delete