How to use the @storybook/addon-info/dist/index.withInfo function in @storybook/addon-info

To help you get started, we’ve selected a few @storybook/addon-info examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patternfly / patternfly-react / packages / patternfly-3 / patternfly-react / src / components / ListView / ListView.stories.js View on Github external
ListView.MainInfo,
      ListView.Row
    ],
    propTablesExclude: [MockCompoundExpansion],
    text: (
      <div>
        <h1>Story Source</h1>
        <pre>{MockCompoundExpansionSource}</pre>
      </div>
    )
  })(() =&gt; )
);

stories.add(
  'ListItem variants',
  withInfo('ListView usage example.')(() =&gt; (
    
      }
        leftContent={}
        additionalInfo={[
          
             Item 1
          ,
          
             Item 2