How to get button or label name as text format?

Also see here:

MIT have tested a solution to provide the button component name, it may be coming in a future update, we will have to wait and see what the priorities are.