benkeen/generatedata

Add Copy option for preview panel

Opened this issue · 0 comments

Sometimes you just want to generate a tiny bit of data; adding a "copy" option would be handy.

Maybe:

  • copy icon left of refresh icon (separated by pipe)
  • very clear tooltip explaining that this isn't the actual generated data.

Copy preview demo code. To generate more, use the Generate button below.

Notes:

  • will require moving preview generation code higher up the stack. Weird it's in the CodeMirrorWrapper component right now anyway.
  • possible icons: FileCopyTwoTone, FileCopy, FileCopyOutlined, SaveAlt