ππ» Hello folks, I am wondering how to get parameters of our stories exposed in the stories.json.
We use the features: { buildStoriesJson: true } in the main.js to get the list of stories as JSON, but the parameters of our stories are missing in the stories.json
Am I missing something, or is it by design ?
I have some stories with this:
// myButton.stories.tsx
import * as React from "react";
export default {
title: "yeah",
};
export const Button = () => {
return (<button>π₯³</button>);
};
Button.parameters = {
foo: "bar"
};
But the generated stories.json does not include the "custom" parameters:
// stories.json
{
"v":3,
"stories":{
"yeah--button": {
"id":"yeah--button",
"title":"yeah",
"name":"Button",
"importPath":"./src/myButton.stories.tsx",
"kind":"yeah",
"story":"Button",
"parameters": {
"__id":"yeah--button",
"docsOnly":false,
"fileName":"./src/myButton.stories.tsx"
}
}
}
}
}