Skip to main content
Participant
June 9, 2020
Answered

Material-UI Framework in React plugin?

  • June 9, 2020
  • 1 reply
  • 933 views

Hello,

 

I am in the process of creating an XD plugin using React (very new to the community!). I have had trouble with some libraries, namely Material-UI (https://material-ui.com/) among some others. I get errors when importing the libraries (eg "TypeError: window.getComputedStyle is not a function").

 

A few comments/questions:

- Per the documentation, I understand that "the XD plugin API environment is not a browser, nor is it Node.js", and that I should not asume that APIs that work in other environments will work in XD. That alone may be evidence that this framework will not work in this environment. (Another part of the documentation that may suggest frameworks like this won't work is here, where it says that "Npm packages that only depend on the core JavaScript language APIs can work in XD").

- I also noticed that the XD documentation provides guides on UX patterns and requirements - I assume this is to ensure that plugins conform to the native styling and experience in XD.

 

So, my questions: Are my assumptions correct - given the environment limitations + UX requirements, are design/styling frameworks generally off-limits in XD?

This topic has been closed for replies.
Correct answer Harshika Verma

Hi there,

 

I would suggest asking your query here: https://forums.adobexdplatform.com/ so that our plugin experts and developers can answer well.

 

Thanks,

Harshika

1 reply

Harshika Verma
Community Manager
Harshika VermaCommunity ManagerCorrect answer
Community Manager
June 9, 2020

Hi there,

 

I would suggest asking your query here: https://forums.adobexdplatform.com/ so that our plugin experts and developers can answer well.

 

Thanks,

Harshika