Skip to content

Can I use the MDX files generated as components and import those in src/pages? #376

Answered by sserrata
santiagoejm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @santiagoejm, the generated MDX would need to be wrapped in either DocItem or ApiItem to include the necessary providers. That said, if you wrap using ApiItem it will expect to receive props for the ApiDemoPanel portion, which are normally passed via the api frontmatter key.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@sserrata
Comment options

@santiagoejm
Comment options

@santiagoejm
Comment options

@sserrata
Comment options

@santiagoejm
Comment options

Answer selected by santiagoejm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants