-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Global import for use on MDX files #3329
Comments
provide them via this option https://nextra.site/docs/docs-theme/theme-configuration#mdx-components and you will not need to import your components on every mdx file |
That's what I did but to no avail,
Am I missing something here? |
Does data and calc are react component? |
Yes, it is
|
They are not react components but object and function |
You are right, it is not. I guess I have to just import it into every mdx file. |
You can also try to assign them to |
Thank you for the pointer, @dimaMachina. You are the best!
|
Is it possible to import the above component globally for me to use
{data, calc}
across all .mdx files? Currently, I'm importing it at all .mdx files.Any help is much appreciated.
The text was updated successfully, but these errors were encountered: