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

贡献者指南