FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix PF3 stories that use stories.addWithInfo · Issue #3001 · patternfly/patternfly-react · GitHub

Fix PF3 stories that use stories.addWithInfo #3001

Description

Currently PF3 stories that use addWithInfo just error out after #2895. We should fix these to use the supported @storybook/addon-info API that looks like this:

storiesOf('Component', module)
  .add('simple info',
    withInfo(`
      description or documentation about my component, supports markdown
    
      ~~~js
      <Button>Click Here</Button>
      ~~~
    
    `)(() =>
      <Component>Click the "?" mark at top-right to view the info.</Component>
    )
  )

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL