Skip to content

Conversation

@evwilkin
Copy link
Member

@evwilkin evwilkin commented Feb 4, 2023

Closes #3331

This PR allows propComponents to be pulled in for components with a different source (such as a component in the next directory referencing props from a standard component) by allowing an object to be passed as a propComponent in place of the component name string.

This object should contain a component property mapped to the component name, and a source property mapped to the name of the source (ex: react). Example:

propComponents: [
  'Dropdown',
  'DropdownGroup',
  'DropdownItem',
  'DropdownList',
  {
    component: 'MenuToggle',
    source: 'react'
  }
]

@patternfly-build
Copy link
Collaborator

@evwilkin evwilkin merged commit 017b568 into patternfly:main Feb 7, 2023
@evwilkin evwilkin deleted the feat/3331-relative-propcomponents branch February 7, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc-framework: Need to be able to import propComponents from relative path

3 participants