Adding a list in my extension


So I am trying to add a list to a component for the user to choose from. I don’t even know what they call it but for example, I want to the user to drop the component then choose a value from the list. It is like the True and False component but I want to add the list value. So what do they call it and what should I use when creating the extension?