@mui/material
Version:
React components that implement Google's Material Design.
34 lines (32 loc) • 1.17 kB
JavaScript
import PropTypes from 'prop-types';
import { createGrid } from '@mui/system/Unstable_Grid';
import { styled, useThemeProps } from '../styles';
const Grid2 = createGrid({
createStyledComponent: styled('div', {
name: 'MuiGrid2',
overridesResolver: (props, styles) => styles.root
}),
componentName: 'MuiGrid2',
// eslint-disable-next-line material-ui/mui-name-matches-component-name
useThemeProps: inProps => useThemeProps({
props: inProps,
name: 'MuiGrid2'
})
});
process.env.NODE_ENV !== "production" ? Grid2.propTypes
/* remove-proptypes */
= {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit TypeScript types and run "yarn proptypes" |
// ----------------------------------------------------------------------
/**
* The content of the component.
*/
children: PropTypes.node,
/**
* @ignore
*/
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
} : void 0;
export default Grid2;