storybookjs/storybook

Configurable raw object editor control

Offen

#15.900 geöffnet am 23.08.2021

 (11 Kommentare) (12 Reaktionen) (0 zugewiesene Personen)TypeScript (10.058 Forks)batch import
addon: controlscompatibility with other toolsfeature requesthelp wantedtriage:reviewed

Repository-Metriken

Stars
 (89.909 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 7T 22h) (184 gemergte PRs in 30 T)

Beschreibung

Is your feature request related to a problem? Please describe Controls addon for objects displays json using react-editable-json-tree. It is set to not use raw editor by default. This causes a bit of a problem for automated cypress tests as it is easier to interact with simple textarea than with json tree component.

Describe the solution you'd like We would like to have configurable object editor through argTypes, something like: control: { type: 'object', useRaw: true }

Describe alternatives you've considered I didn't found any alternative to this.

Are you able to assist to bring the feature to reality? maybe yes :)

Additional context image

Contributor Guide