Hello Manvitha,
as starting point I would recommend you the example called Menus. This example is created using the component templates Menu, Menu Item, etc. as shown in the screenshot below:

As explained in the chapter Creating components from templates, the templates are helpful to enhance your application by common functionality like menu. You can thereupon modify this functionality and, for example, change the appearance of the menu. Please note the inline documentation found inside the templates.
I hope it helps you further.
Nest regards
Paul Banach