Next.js Discord

Discord Forum

App Router: Styling MDX Components, troubleshooting

Unanswered
Rhinelander posted this in #help-forum
Open in Discord
RhinelanderOP
I'm trying to style my mdx components and I can't figure out where to be wrapping them in the MDXProvider or if I am missing other necessities: https://github.com/brianschnee/portfolio-sleek/tree/markdown.

I'm not even sure I'm following the best practices for setting up MDX. I used this video for assistance: https://www.youtube.com/watch?v=n2CV6f0vFr4&t=63s. My markdown is kept locally but the video suggested using next-mdx-remote for its ease of use with slugs/metadata/etc (which is contrary to what the documentation says about using the dependency).

Any help is much appreciated as this is new territory for me. Thank you

0 Replies