Skip to content

Commit

Permalink
Merge pull request #1326 from blairanderson/patch-1
Browse files Browse the repository at this point in the history
fixes #1299 - addons/info: update readme
  • Loading branch information
shilman committed Jun 23, 2017
2 parents bb1bd8b + 10ba799 commit 4710321
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions addons/info/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,24 @@ storiesOf('Component')

> Have a look at [this example](example/story.js) stories to learn more about the `addWithInfo` API.

To customize your defaults:

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

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

## The FAQ

**Components lose their names on static build**
Expand Down

0 comments on commit 4710321

Please sign in to comment.