import * as React from 'react'; import PropTypes from 'prop-types'; import ListItem from '@mui/material/ListItem'; import FormLabel from '@mui/material/FormLabel'; function ListHeader({ sx = [], children }) { return ( {children} ); } ListHeader.propTypes = { children: PropTypes.node, sx: PropTypes.oneOfType([ PropTypes.arrayOf( PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool]), ), PropTypes.func, PropTypes.object, ]), }; export default function PassingSxProp() { return ( ({ color: 'info.main', ...theme.typography.overline, })} > Header ); }