Skip to content

Magento2: How to add dropdown menu with category products category on top navigation

I am using magento 2.4.3-p2

I want to show sub-category products along with subcategories in top navigation.

Home  MainCategory  About Us
       Subcategory1  Subcategory2   Subcategory3
        product-1-1   Product-2-1    product-3-1
        product-1-2   Product-2-2    product-3-2
        product-1-3   Product-2-3    product-3-3
    

Please help me how to achieve this
Thanks in advance