-
Notifications
You must be signed in to change notification settings - Fork 10.3k
docs(workflows): new guide about importing and using components in MDX #21285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome. I finally understand what in the world short codes are! Made a couple suggestions. Also wondering if it's worth showing an example of how the MdxProvider is used in the layout? It may not be, but figured it was worth considering.
cc @tomhermans - As per our discussion take a look at this PR, I think this is giving you more of the details and answers you were looking for with short codes and components in MDX. |
Co-Authored-By: LB <[email protected]>
Co-Authored-By: LB <[email protected]>
LGTM! |
…ing-components-in-mdx
gatsbyjs#21285) * update libraries to crosslink and include data about using other components * revisions to remove wrongly committed code * Apply suggestions from code review Co-Authored-By: LB <[email protected]> * Update docs/docs/mdx/importing-and-using-components.md * update example to clarify shortcode example * one more change from mdx files to mdx documents * Update docs/docs/mdx/importing-and-using-components.md Co-Authored-By: LB <[email protected]> Co-authored-by: LB <[email protected]> Co-authored-by: GatsbyJS Bot <[email protected]>
Description
To go along with the workflow for using style libraries and components from other sources: #21278, these changes add a new guide for using third-party components.
Because this content isn't exactly new, I updated content and combined some things with some more nuance on this new page, linking everything together.
Screenshots
Importing and Using Components
Related Issues
Related to #21278