Storybook control with dash in name. #15439
-
Hello everyone, I have a question about arg/Parameter naming and the Storybook loading process from JSON. I am working at GitHub and looking to improve the accessibility on Primer, our view component library. We have a component with that story JSON file. {
"title": "Primer/Hellip Button",
"stories": [
{
"name": "hellip_button",
"parameters": {
"server": {
"id": "primer/hellip_button/hellip_button"
}
},
"args": {
"aria-label": "button label",
"inline": false
},
"argTypes": {
"aria-label": {
"control": {
"type": "text"
},
"name": "Aria Label"
},
"inline": {
"control": {
"type": "boolean"
},
"name": "Inline"
}
}
}
]
} As you can see, there is the Because of that dash, I end up having that error when running the Storybook website. And my component is not visible in the stories list.
Can any of you tell me if it is a known limitation of the parsing process? Or if something similar was noticed before? And also, thanks for your work on Storybook; it is a super useful project! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Discussed here #14908 |
Beta Was this translation helpful? Give feedback.
Discussed here #14908