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
.agents/skills/tscircuit/elements/copperpour.md
# `<copperpour />`
The `<copperpour />` element (also known as a groundplane) fills large areas of a layer with copper tied to a specific net, helping with return paths, shielding, and thermal performance.
Local long-form docs currently live in `docs/docs/elements/groundplane.mdx`.
## Example
```tsx
export default () => (
<board
width="30mm"
height="20mm"
>
<chip name="U1" footprint="soic8" pcbX={-6} pcbY={0} />
<resistor name="R1" resistance="10k" footprint="0402" pcbX={6} pcbY={4} />
<capacitor name="C1" capacitance="100nF" footprint="0402" pcbX={6} pcbY={-4} />
<trace from=".R1 > .pin2" to="net.GND" />
<trace from=".C1 > .pin2" to="net.GND" />
<trace from=".U1 > .pin4" to="net.GND" />
<copperpour connectsTo="net.GND" layer="top" clearance="0.15mm" />
</board>
)
```
## Props
Commonly used: `name`, `layer`, `connectsTo`, `padMargin`, `traceMargin`, `clearance`, `boardEdgeMargin`, `cutoutMargin`
## References
- Props: [CopperPourProps](https://github.com/tscircuit/props#copperpourprops-copperpour)
- Source: [lib/components/copper-pour.ts](https://github.com/tscircuit/props/blob/main/lib/components/copper-pour.ts)
- Local docs: [docs/docs/elements/groundplane.mdx](../docs/docs/elements/groundplane.mdx)