techmannih/usbc-charger

This code defines a detailed electronic hardware design for an 85-265VAC to USB-C PD 18W wall charger, including the schematic layout and physical component placements such as connectors, filtering inductors, capacitors, resistors, protection diodes, and an isolated power module, all integrated with 3D models and mechanical enclosures.

Version
1.0.7
License
unset
Stars
0

.claude/skills/tscircuit/elements/courtyardrect.md

# `<courtyardrect />`

Draw rectangular IPC courtyard markings around a footprint body.

## Example

```tsx
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>
)
```

## Props

Commonly used: `width`, `height`, `strokeWidth`, `isFilled`, `hasStroke`, `isStrokeDashed`, `color`, `name`

## References

- Props: [CourtyardRectProps](https://github.com/tscircuit/props#courtyardrectprops-courtyardrect)
- Source: [lib/components/courtyard-rect.ts](https://github.com/tscircuit/props/blob/main/lib/components/courtyard-rect.ts)
- Local docs: [docs/docs/elements/courtyardrect.mdx](../docs/docs/elements/courtyardrect.mdx)