Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
...style,
display: 'block',
maxHeight,
overflow: 'auto',
}}>
{contents}
);
}
}
Menu.propTypes = {
/**
* Needed for accessibility.
*/
id: isRequiredForA11y(PropTypes.oneOfType([
PropTypes.number,
PropTypes.string,
])),
/**
* Maximum height of the dropdown menu.
*/
maxHeight: PropTypes.string,
};
Menu.defaultProps = {
maxHeight: '300px',
};
Menu.Divider = (props) => (
<li role="separator">
);</li>