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 3 main types of smtpads:

  • rect - A rectangular pad
  • circle - A circular pad
  • pill - A pill-shaped pad

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)
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")