Calling Component with Multiple Markdown Props Elements #1958
-
I am working on a research project where we just integrated MDX v2 into our website directory. I'm trying to create an education page from my education.mdx file, where I'm calling my CustomCard component with two markdown elements, one for the name and another for the description. The instance where I'm calling the CustomCard component is shown below
My CustomCard component recognizes props.children as a markdown element, but not the the props.label or props.description values. Is there a better way to pass in two markdown elements to a component? Thank you for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It sounds like you have similar interests and needs to #1954 |
Beta Was this translation helpful? Give feedback.
It sounds like you have similar interests and needs to #1954
The options in #1954 (comment) offer a few options which may solve your use case as well