Hi @Manasi29 ,
Here is a code snippet of reading a tag from the page properties dialog, Similarly you can modify the code for the custom component dialog as well in the sling model.
//Getting all Tags from InheritanceValueMapString[] allTags = pageProperties.get("cq:Tags", String[].class);TagManager...