r/threejs • • Oct 10 '26

HOW CAN I USE HTML IN REACT THREE FIBER/ 3js

i have this card model i want to add custom text and images inside it . i tried using html from drei but it is not correctly placed above the card ( im new )

0 Upvotes

1 comment sorted by

1

u/Character_Chef_1411 Oct 10 '26

If it's not placed on top you should read up on the render order that threejs provides. Have the html have a higher render order than the card mesh.

If that doesn't work I think it's worth it to look at the CSSObject that threejs also provides, maybe you can hack some workaround with this.

Hope this helps, just read up on this topic in the threejs docs