Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey all.
Apologies in advance if this is an inappropriate PR 馃槵
I've been developing a Gatsby plugin called gatsby-plugin-prop-shop which provides an holistic view of all PropTypes defined in a Gatsby project.
You can specify using the options where you wish to source
.js
or.tsx
files from and once you've configured the plugin you can spin up your project using the usualgatsby develop
orgatsby build
methods and then navigate to eg:http://localhost:8000/prop-shop/
to see all the PropTypes and descriptions for the specified source directories.There are a number of search / filter options available in the PropShop UI which can be used to investigate prop and files.
I've added
prop-types
to the components package along with some descriptions to theEmbed
component so you can get a better understanding of how the plugin works.I appreciate a lot of the theme-ui components are styled html and by spreading props allow users to set attributes as they normally would in html world but there are one or two custom props which might benefit from PropTypes / descriptions.
Please don't feel like this PR should be merged and especially as i'm still in the early stages of development but i'd love your feedback all the same.
Thanks in advance
Paul