Its not really clear what component you are referring to so its better to provide a specific use case so we understand the requirements. Meanwhile you can check the following document to get some idea on how to create/extend AEM components:Developing AEM Components