-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add argTypes.<input>.control.readonly
option
#14048
Comments
Love it. ❤️ If you're interested in contributing we'd be happy to help you get going. https://discord.gg/storybook |
Closed
Awesome👍 |
Any updates on this? |
I'll implement this. |
Any progress? |
@snitin315 are you working on it or do we need a new volunteer? |
valentinpalkovic
changed the title
Add
Add Mar 20, 2024
argTypes.controls.readonly
optionargTypes.<input>.table.readonly
option
valentinpalkovic
changed the title
Add
Add Mar 20, 2024
argTypes.<input>.table.readonly
optionargTypes.<input>.control.readonly
option
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe
Currently, it's possible to
disable
an arg type, or make it disappear. See https://storybook.js.org/docs/react/essentials/controls#disable-controls-for-specific-propertiesIt's not possible to display the value while making it readonly, though.
Describe the solution you'd like
Describe alternatives you've considered
None.
Are you able to assist to bring the feature to reality?
I could, but never contributed to the base code and don't know where to start.
Additional context
The goal is to display the value while disabling the ability to change it.
It'd be useful when we want the user to see the value, but where editing it would be confusing, such as for initial props that are meant to initialize states and won't have any effect if manually updated. In such cases, seeing the actual value is useful, but editing it would be confusing because it wouldn't reflect on the component.
The text was updated successfully, but these errors were encountered: