Its not the correct implementation of dialog, usually dialog are used to take user input and not to display dynamic data. For displaying component info we use to write logic into html of rendering component or static help text in dialog node.
If you still want to proceed, Scott has shared a really nice link that can cater you requirement, Another way is you can also create a listener on tab click and show the component info to the content author.