You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it advisable to use the children prop in the args object of the CSF format?
It's not mentioned anywhere in the docs or indeed anywhere on the web, I want to showcase how a component behaves with different children passed in. Just checking this is standard.
Please specify which version of Storybook and optionally any affected addons that you're running
Closing this issue as mappings is now a feature that is available to Storybook users. If there's still an issue, please leave a comment in the issue mentioned above.
// Replace your-renderer with the renderer you are using (e.g., react, vue3, angular, etc.)importtype{Meta}from'@storybook/your-renderer';import{Example}from'./Example';constmeta: Meta<typeofExample>={component: Example,argTypes: {label: {options: ['Normal','Bold','Italic'],mapping: {Bold: <b>Bold</b>,Italic: <i>Italic</i>,},},},};exportdefaultmeta;
support request summary
Is it advisable to use the children prop in the args object of the CSF format?
It's not mentioned anywhere in the docs or indeed anywhere on the web, I want to showcase how a component behaves with different children passed in. Just checking this is standard.
Please specify which version of Storybook and optionally any affected addons that you're running
Screenshots / Screencast / Code Snippets (Optional)
The text was updated successfully, but these errors were encountered: