Open JLampeMW opened 1 month ago
I find this rather inconvenient, as you don't want really to copy the entire code (which is what this button at this position would indicate), but only the component area as the imports are unnecessary here.
Then I would suggest that the Copy button only copies the component and ignores the imports. Would be very helpful in any case
Personally, I would manage the import and the component separately. This means one field with a copy button for the imports and another field for the component with a copy button.
As in this example:
Add a Copy button at the top right of the TextField to copy the whole code