The component actually shows the "Copy code" button, but any other option should be able to be used.
In frameworks like Angular or React, a callback function and a text could be received as a parameter and would be called when the text button is pressed.