atlassian / extract-react-types

One stop shop for documenting your react components.
https://atlassian.github.io/extract-react-types/
MIT License
179 stars 28 forks source link

Generic layout renderer #210

Closed danieldelcore closed 2 years ago

danieldelcore commented 2 years ago

Adds a new export LayoutRenderer. This acts as a generic type renderer for cases where the preset layouts don't suit our needs.

The idea is that instead of trying to support every layout and providing override props etc, we just export something that loops over the types and gives consumers a place to substitute their own UI.

This PR also replaces the implementation of the Hybrid layout as a proof of concept.

image
changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 1b66aa194c9326281037feab2138ac0d03021a43

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------- | ----- | | pretty-proptypes | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR