kickstartDS / storybook-addon-jsonschema

Displays associated JSON Schema documentation using a rich schema explorer interface, and adds a validating JSON Code Editor with semantic auto-complete to interact with your components, and copy configurations with ease.
https://www.kickstartDS.com/docs/integration/storybook/schema
MIT License
12 stars 1 forks source link

Add `Copy` button to `JSON Code Editor` #4

Open julrich opened 2 years ago

julrich commented 2 years ago

Currently you can copy the JSON / YML example generated as part of the JSON Schema Explorer, but you can't actually copy the synchronized JSON Code Editor object, yet. You can just highlight and Ctrl+C, but it should additionally be possible to copy with mouse / browser clipboard integration.

See e.g.: https://www.npmjs.com/package/react-copy-to-clipboard