Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

MUI in PCF

(0) ShareShare
ReportReport
Posted on by

Hello fellow PowerAppers,

 

I was wondering if anyone has had any luck with implementing MUI (material-ui) in PCF components? I have got it all the way to displaying in the PCF preview but when I import it into a PowerApps application it is just blank. Perhaps it is due to PowerApps not having this framework available? (It is google after all) With that being said, I have seen examples of people using Babylon.js in a PCF component so it seems like it should be possible.

 

Thanks,

  • angelbueno Profile Picture
    2 on at
    Re: MUI in PCF

    Hi! Excuse me for asking, could you tell me what project or where you have seen babylon.js used in PCF. Thank you!

  • Community Power Platform Member Profile Picture
    on at
    Re: MUI in PCF

    Oh thank you! I will check into this when I get a chance. This seems very possible.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: MUI in PCF

    Hi @Anonymous , 

    A virtual PCF allows you to use the React used by the Power Apps (and eventually Fluent UI).
    If you add libraries (like material-ui), you need to declare them in the package.json and import the needed components in your code.
    Since the virtual components are using a fixed version of React, maybe there is an issue with the material-ui version you use. React 18 has some changes, and virtual PCFs are using a React 16.8.6. There might be a conflict...

  • Community Power Platform Member Profile Picture
    on at
    Re: MUI in PCF

    My only other guess is that I am using it in a React virtual control which I believe uses built in frameworks that need to match those in the solution. At least that is the case with React and Fluent versions. The control renders fine when being run through vscode.

  • a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: MUI in PCF

    Hello,

    I used MUI in PCF controls and it worked fine for me. When the PCF control is built it includes all the frameworks needed for the control.

    My recommendation - troubleshoot the control - there must be some issue in the code or logic of the control that stops it from being rendered.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard