It’s true that adapting an existing component into your project might not always go as smoothly as you’d like when it comes to specific requirements and styling….
Source: https://blog.logrocket.com/building-a-custom-dropdown-menu-component-for-react-e94f02ced4a1