Skip to main content
Footprints

<silkscreenline />

Overview​

The <silkscreenline /> element draws a straight line segment between (x1, y1) and (x2, y2) on the PCB silkscreen layer. It is ideal for drawing polarity bars on diodes and polarized capacitors, notched package outlines, or keep-clear tick marks around pads.

export default () => (
<board width="12mm" height="8mm">
<diode
name="D1"
footprint={
<footprint>
<smtpad portHints={["1", "anode"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="-1.5mm" pcbY={0} />
<smtpad portHints={["2", "cathode"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="1.5mm" pcbY={0} />
<silkscreenline x1="-2.2mm" y1="0.9mm" x2="2.2mm" y2="0.9mm" strokeWidth="0.15mm" />
<silkscreenline x1="-2.2mm" y1="-0.9mm" x2="2.2mm" y2="-0.9mm" strokeWidth="0.15mm" />
<silkscreenline x1="0.7mm" y1="-0.9mm" x2="0.7mm" y2="0.9mm" strokeWidth="0.25mm" />
</footprint>
}
/>
</board>
)
PCB Circuit Preview

Properties​

PropertyTypeDefaultDescription
x1lengthrequiredX coordinate of the line start point
y1lengthrequiredY coordinate of the line start point
x2lengthrequiredX coordinate of the line end point
y2lengthrequiredY coordinate of the line end point
strokeWidthlength"0.1mm"Width of the silkscreen line
layer"top" | "bottom""top"PCB layer on which the silkscreen line is placed