<courtyardrect />
Overview
Use <courtyardrect /> to create rectangular courtyard boundaries for packages with rectangular bodies.
Basic Example
export default () => (
<board width="26mm" height="20mm">
<chip
name="U1"
footprint={
<footprint>
<platedhole shape="circle" pcbX={-4} pcbY={0} outerDiameter={2.2} holeDiameter={1.1} />
<platedhole shape="circle" pcbX={4} pcbY={0} outerDiameter={2.2} holeDiameter={1.1} />
<courtyardrect
pcbX={0}
pcbY={0}
width={12}
height={8}
strokeWidth={0.1}
/>
</footprint>
}
/>
</board>
)
Dashed Courtyard Example
export default () => (
<board width="30mm" height="24mm">
<chip
name="J1"
footprint={
<footprint>
<platedhole shape="circle" pcbX={-3} pcbY={0} outerDiameter={2.2} holeDiameter={1.1} />
<platedhole shape="circle" pcbX={3} pcbY={0} outerDiameter={2.2} holeDiameter={1.1} />
<courtyardrect
pcbX={0}
pcbY={0}
width={14}
height={10}
strokeWidth={0.1}
isStrokeDashed
/>
</footprint>
}
/>
</board>
)