mittwald / flow

A collection of packages related to Flow – the mittwald design system.
https://mittwald.github.io/flow/
MIT License
3 stars 0 forks source link

Copy button at the top right of each component code #626

Open JLampeMW opened 1 month ago

JLampeMW commented 1 month ago

Bildschirmfoto 2024-08-07 um 11 22 47

Add a Copy button at the top right of the TextField to copy the whole code

maaaathis commented 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.

JLampeMW commented 1 month ago

Then I would suggest that the Copy button only copies the component and ignores the imports. Would be very helpful in any case

JLampeMW commented 1 month ago

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: Bildschirmfoto 2024-08-07 um 12 52 21