Controls: Add option to disable "save from controls"
shilman opened this issue · comments
Discussed in #27219
Originally posted by MichaelAllenWarner May 22, 2024
Summary
The new feature for creating and editing stories from controls is great, but with my (idiosyncratic) setup it doesn't work, and I'd like to disable it since it just gets in the way. Is there a way to prevent that "You modified this story..." popup from appearing altogether when I use the Controls?
Additional information
No response
Create a reproduction
No response
Proposal:
// .storybook/preview.js
export default {
parameters: {
controls: {
disableSave: true
}
}
}
Alternate proposal:
// .storybook/main.js
export default {
addons: [
{
name: "@storybook/addon-essentials",
options: {
saveFromControls: false
},
},
],
};
Or when using addon-controls directly:
// .storybook/main.js
export default {
addons: [
{
name: "@storybook/addon-controls",
options: {
saveFromControls: false
},
},
],
};
Would very much like to see this get implemented
Any update on this ?
Can I start to work on this ?