Storybook: info addon

Created on 25 Oct 2018  路  5Comments  路  Source: storybookjs/storybook

I would just like to let you know that I find the info addon documentation hard to follow. I am struggling to install it because it lacks informations. For example, I am requested to use addDecorator(withInfo) in the config file but I don't know where, how to import it (if needed) and same for withInfo. This doc could use some update!

info inactive question / support

Most helpful comment

I wasn't able to get the global decorator to work like that either. The following worked for me (obviously the options could be changed):

addDecorator((getStory, context) => withInfo({ inline: true })(getStory)(context));

All 5 comments

I wasn't able to get the global decorator to work like that either. The following worked for me (obviously the options could be changed):

addDecorator((getStory, context) => withInfo({ inline: true })(getStory)(context));

@nickstaroba you wrote the exact same link as I did...

I must agree with @PierreTurnbull, the documentation should include the following import:

import { addDecorator } from '@storybook/react';

I assumed this was exported by '@storybook/react' but it shouldn't be necessary to assume it.

I also had troubles to make the decorator work. The fix of @jlpospisil worked thankfully!

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

levithomason picture levithomason  路  3Comments

tomitrescak picture tomitrescak  路  3Comments

ZigGreen picture ZigGreen  路  3Comments

shilman picture shilman  路  3Comments

rpersaud picture rpersaud  路  3Comments