score:1

Accepted answer

try using url in your css when you are setting the background. the url() is used to include a file in css.

 import uploadicon from "../image.png"

 <card.section
      fill
      styles={{
        ...backgroundimagecardsectionstyles,
        root: {
          ...backgroundimagecardsectionstyles.root,
          backgroundimage: `url(${uploadicon})`,
          backgroundcolor: '#f3f2f1',
          minheight: '150px',
          maxheight: '150px',
        },
      }}
      ... more code

Related Query

More Query from same tag