Create a perspective component in custom module

Hi, I want to create a perspective dropdown in my custom module, and the data of this dropdown box is obtained from the database based on the value set by the property. What can I do, or is there any example can be provided to me?

IA publishes various examples on github, including a perspective-component example: