Skip to main content
Footprints

<courtyardrect />

Overview

Courtyard rectangles define the physical boundary of a component, including potential tolerance. They are critical for ensuring components are not placed too close together.

export default () => (
<board width="20mm" height="20mm">
<courtyardrect width={2} height={3} />
<courtyardrect width={4} height={1} pcbX={5} layer="bottom" />
</board>
)
PCB Circuit Preview

Props

PropTypeDescription
widthnumber | stringThe width of the rectangle.
heightnumber | stringThe height of the rectangle.
...PcbLayoutPropsInherited PcbLayoutProps (e.g. pcbX, pcbY, layer, pcbRotation).