Open
Description
openedon Oct 18, 2023
Describe the bug
Hello, I checked https://storybook.js.org/docs/react/essentials/controls#conditional-controls for info about conditionals and found I can use something like this:
hasError: {
if: {arg: "isDisabled", truthy: false}
},
How can I define multiple conditionals? I tried this but it doesn't work:
errorMessage: {
if: [
{arg: "hasError", truthy: true},
{arg: "isDisabled", truthy: false}
]
},
It says Invalid conditional value {}
To Reproduce
No response
System
No response
Additional context
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
No status