Material UI in docusaurus #8902
-
I had created a rfc using material UI button, when I'm trying to import that rfc in the docusaurus.config.js and to use that button in the top nav-bar I'm getting import statements outside the modules so i tried with normal rfc which return a basic h1 tag even there I'm getting same error so i change the import React to const React = requ(....), Now I'm getting error
my rfc
docusaurus
in the above I'm trying to use that button can someone help me out how to solve this issue |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Got Solved in Discord by userdocsCreate a file in src/theme/NavbarItem/ComponentTypes.js to add a custom navbar item type to the existing mapping,
Add this to Docusaurus.config.js in items
I don't know but, custom href is 2-3 sec slow than Docusaurus href |
Beta Was this translation helpful? Give feedback.
-
Now I'm using default as I felt slow so I modified that repo, no worries I will create a dummy one and will see again if I find it slow I will share the link here. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/MaheshReddy-05/Testing Look into this, the issue here is when I click on customized rfc(click me) the webpage is loading but when I click on direct item blog the website is not loading Is there any way that even when I click on the customized rfc the webpage shouldn't load and redirect I was kinda new to web dev. |
Beta Was this translation helpful? Give feedback.
Got Solved in Discord by userdocs
Create a file in src/theme/NavbarItem/ComponentTypes.js to add a custom navbar item type to the existing mapping,
Add this to Docusaurus.config.js in items
I don't know but, custom href is 2-3 sec slow than Docusaurus href