UNPKG

1.27 kBJavaScriptView Raw
1import PropTypes from 'prop-types';
2import { createGrid } from '@mui/system/Unstable_Grid';
3import { styled, useThemeProps as _useThemeProps } from '../styles';
4var Grid2 = createGrid({
5 createStyledComponent: styled('div', {
6 name: 'MuiGrid2',
7 overridesResolver: function overridesResolver(props, styles) {
8 return styles.root;
9 }
10 }),
11 componentName: 'MuiGrid2',
12 // eslint-disable-next-line material-ui/mui-name-matches-component-name
13 useThemeProps: function useThemeProps(inProps) {
14 return _useThemeProps({
15 props: inProps,
16 name: 'MuiGrid2'
17 });
18 }
19});
20process.env.NODE_ENV !== "production" ? Grid2.propTypes
21/* remove-proptypes */
22= {
23 // ----------------------------- Warning --------------------------------
24 // | These PropTypes are generated from the TypeScript type definitions |
25 // | To update them edit TypeScript types and run "yarn proptypes" |
26 // ----------------------------------------------------------------------
27
28 /**
29 * The content of the component.
30 */
31 children: PropTypes.node,
32
33 /**
34 * @ignore
35 */
36 sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
37} : void 0;
38export default Grid2;
\No newline at end of file