Skip to main content
Footprints

<silkscreenrect />

Overview

Silkscreen rectangles can be used to encapsulate a rectangular area around a chip

export default () => (
<board width="5mm" height="5mm">
<footprint>
<silkscreenrect pcbX={0} pcbY={0} width={1} height={1} />
</footprint>
</board>
)
PCB Circuit Preview

Properties

PropertyTypeDescription
pcbXlengthX coordinate of the rectangle center on the PCB silkscreen.
pcbYlengthY coordinate of the rectangle center on the PCB silkscreen.
widthlengthWidth of the rectangle.
heightlengthHeight of the rectangle.
strokeWidthlengthThickness of the rectangle outline.
filledbooleanWhen true, fills the rectangle instead of drawing only the outline.
hasStrokebooleanWhen false, hides the outline even if filled is not set.
isStrokeDashedbooleanWhen true, renders the outline with a dashed pattern.
layerstringPCB layer to place the silkscreen rectangle on.

Stroke Width

Use strokeWidth to control the outline thickness of the rectangle. This is helpful when you want to match line weights across silkscreen features.

export default () => (
<board width="8mm" height="5mm">
<footprint name="U1">
<silkscreenrect pcbX={-2} pcbY={0} width={2} height={2} strokeWidth={0.1} />
<silkscreenrect pcbX={2} pcbY={0} width={2} height={2} strokeWidth={0.35} />
</footprint>
</board>
)
PCB Circuit Preview

Filled Silkscreen Rectangles

Enable the filled prop to create solid silkscreen blocks—useful for alignment targets or bold markings. You can mix filled and outlined rectangles within the same footprint.

export default () => (
<board width="5mm" height="5mm">
<footprint name="U1">
<silkscreenrect pcbX={-1.2} pcbY={0} width={1} height={1} />
<silkscreenrect
pcbX={1.2}
pcbY={0}
width={1}
height={1}
filled
/>
</footprint>
</board>
)
PCB Circuit Preview