Thank you for reaching out. In which application you are using this UXP plugin? Which plugin are you using? Are you looking for metadata or comments in Adobe XD? If so, then I would request you to submit the feedback on our XD UserVoice page and add your voice.
I'm actually trying to create a plugin. I was wondering if there's any way to add info to a component that would be accessable from within my plugin. Anything would actually work: a tag, meta, comment... I just want to be able to mark a component as a type so I can treat the component in different ways depending on what type it is.