storybookjs/storybook

Configurable raw object editor control

開放

#15,900 建立於 2021年8月23日

 (11 則留言) (12 個反應) (0 位負責人)TypeScript (10,058 個分叉)batch import
addon: controlscompatibility with other toolsfeature requesthelp wantedtriage:reviewed

倉庫指標

星標
 (89,909 顆星)
PR 合併指標
 (平均合併 7天 22小時) (30 天內合併 184 個 PR)

描述

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

貢獻者指南