Skip to main content
Footprints

<coppertext />

Overview

The <coppertext /> element is used to add text directly to the copper layer of a PCB. This is commonly used for reference designators, polarity indicators, or other markings that need to be part of the copper rather than silkscreen.

export default () => (
<board width="10mm" height="10mm">
<footprint>
<coppertext text="U1" pcbX="0" pcbY="0" fontSize="1mm" />
</footprint>
</board>
)
PCB Circuit Preview

Properties

PropertyTypeDescription
textstringThe text string to display.
pcbXlengthX coordinate of the text position on the PCB.
pcbYlengthY coordinate of the text position on the PCB
anchorAlignmentenumAlignment of the text. One of "center", "top_left", "top_right", "bottom_left", "bottom_right". Defaults to "center".
fontenumOptional. The font type, e.g. "tscircuit2024".
fontSizelengthOptional. The size of the font.
layersarrayOptional. The copper layers to render on. Defaults to ["top"].
knockoutbooleanOptional. When true, removes copper under the text (creates a clear area).
mirroredbooleanOptional. When true, mirrors the text.
rotationnumberOptional. Rotation angle in degrees.

Knockout

The knockout prop removes the copper under the text, creating a clear area. This is useful for text like "GND" or "VCC" where you want to ensure the text is readable and not affected by copper pour.

export default () => (
<board width="12mm" height="10mm">
<footprint>
<coppertext text="GND" pcbX="-2.5" pcbY="0" fontSize="1.5mm" knockout />
<coppertext text="VCC" pcbX="2.5" pcbY="0" fontSize="1.5mm" />
</footprint>
</board>
)
PCB Circuit Preview

The left text has knockout={true} (copper removed underneath), while the right text does not.