Skip to content
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

CardMedia for image #3

Open
RRaphaell opened this issue Jun 30, 2022 · 2 comments
Open

CardMedia for image #3

RRaphaell opened this issue Jun 30, 2022 · 2 comments

Comments

@RRaphaell
Copy link

how to use mui.CardMedia for local images?

@m-glowacki
Copy link

any updates on this?

@RRaphaell
Copy link
Author

RRaphaell commented Mar 14, 2023

@m-glowacki

you can write

mui.CardMedia(
component="img",
src="img_name.png",
)

but you have to save this img_name.png in the specific location (I dont remembr where) this component reads this image from it's specific folder. Run this and based on the error you will find out

as I remember it can't read image from other location, that's why you need this workaround that I mention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants