Skip to main content

<smtpad />

Overview

The <smtpad /> element is used to represent a surface mount pad.

export default () => (
<board width="10mm" height="10mm">
<chip name="U1" footprint={
<footprint>
<smtpad
pcbX="0mm"
pcbY="0mm"
layer="top"
shape="rect"
width="5mm"
height="5mm"
portHints={["pin1"]}
/>
</footprint>
} />
</board>
)
Schematic Circuit Preview

SMT Pad Shapes

There are 4 main types of smtpads:

  • rect - A rectangular pad
  • circle - A circular pad
  • pill - A pill-shaped pad
  • polygon - A custom polygon-shaped pad defined by a list of points

Each smtpad shape has different properties.

Properties

PropertyShapeDescription
widthrect, pillThe width of the pad
heightrect, pillThe height of the pad
radiuscircle, pillThe radius of the pad (for circle) or corner radius (for pill)
pointspolygonAn array of { x, y } coordinates describing the polygon vertices
ccwRotationrectCounter-clockwise rotation angle in degrees
portHintsallArray of port names that this pad connects to
pcbXallX position of the pad center on the PCB
pcbYallY position of the pad center on the PCB
layerallWhich layer the pad is on ("top" or "bottom")

Example: Polygon Pad

Here’s an example of using a polygon smtpad

export default () => (
<board width="10mm" height="10mm">
<chip name="U1" footprint={
<footprint>
<smtpad
pcbX="0mm"
pcbY="0mm"
shape="polygon"
layer="top"
portHints={["pin1"]}
points={[
{ x: -2, y: 2 },
{ x: 1, y: 2 },
{ x: 2, y: 1 },
{ x: 2, y: -1 },
{ x: 1, y: -2 },
{ x: -2, y: -2 },
]}
/>
</footprint>
} />
</board>
)
PCB Circuit Preview