This component consists in a side navigation menu. Let's start by creating the structure of our web component. Create a file sidenavLab.js. Inside of it we will create three web components that will be integrated:
Both components have two attributes:
There is an attribute just for the items:
In this case we create two attributes and a function:
It fires when the component is created
Check a working demo for this code: