-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controls: Add option to disable "save from controls" #28377
Comments
shilman
changed the title
Controls: Add option to disable "Creating and editing stories from controls" feature
Controls: Add option to disable "Creating and editing stories from controls"
Jun 28, 2024
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
},
},
],
}; |
shilman
changed the title
Controls: Add option to disable "Creating and editing stories from controls"
Controls: Add option to disable "save from controls"
Jun 29, 2024
Would very much like to see this get implemented |
Any update on this ? |
Can I start to work on this ? |
8 tasks
github-project-automation
bot
moved this from In Progress
to Done
in Core Team Projects
Jul 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: