Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addon: info - truncating props? how to update and change? #1299

Closed
blairanderson opened this issue Jun 16, 2017 · 3 comments
Closed

addon: info - truncating props? how to update and change? #1299

blairanderson opened this issue Jun 16, 2017 · 3 comments

Comments

@blairanderson
Copy link
Contributor

If i use the info addon: https://github.com/storybooks/storybook/tree/master/addons/info

sometimes props are truncated. How can i change that?

@blairanderson
Copy link
Contributor Author

I will add to documentation after finding the information.

@shilman
Copy link
Member

shilman commented Jun 17, 2017

@blairanderson take a look at this PR: #1157

@Stupidism
Copy link
Contributor

Here is my config for this problem

// config.js
import infoAddon, { setDefaults } from '@storybook/addon-info';


// addon-info
setDefaults({
  inline: true,
  maxPropsIntoLine: 1,
  maxPropObjectKeys: 10,
  maxPropArrayLength: 10,
  maxPropStringLength: 100,
});
setAddon(infoAddon);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants