📄 drei/abstractions/text

File: text.md | Updated: 11/15/2025


title: Text sourcecode: src/core/Text.tsx

<Grid cols={4}> <li> <Codesandbox id="yup2o" /> </li> </Grid>

Hi-quality text rendering w/ signed distance fields (SDF) and antialiasing, using troika-3d-text. All of troikas props are valid! Text is suspense-based!

<Text color="black" anchorX="center" anchorY="middle">
  hello world!
</Text>

Text will suspend while loading the font data, but in order to completely avoid FOUC you can pass the characters it needs to render.

<Text font={fontUrl} characters="abcdefghijklmnopqrstuvwxyz0123456789!">
  hello world!
</Text>