Skip to main content
Footprints

<courtyardoutline />

Overview

Courtyard outlines define the physical boundary of a component using a custom shape defined by a series of points.

export default () => (
<board width="20mm" height="20mm">
{/* Triangle shape */}
<courtyardoutline
outline={[
{ x: 0, y: 0 },
{ x: 3, y: 0 },
{ x: 1.5, y: 2.5 },
]}
/>
{/* L-shaped polygon on bottom layer */}
<courtyardoutline
outline={[
{ x: 5, y: 0 },
{ x: 8, y: 0 },
{ x: 8, y: 1 },
{ x: 6, y: 1 },
{ x: 6, y: 3 },
{ x: 5, y: 3 },
]}
layer="bottom"
/>
</board>
)
PCB Circuit Preview

Props

PropTypeDescription
outlinePoint[]An array of points defining the vertices of the polygon.
closebooleanWhether the outline should be closed. Defaults to true (implicit).
...PcbLayoutPropsInherited PcbLayoutProps (e.g. pcbX, pcbY, layer, pcbRotation).