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/via.md

# `<via />`

A via is a plated hole that connects different layers of a PCB. Vias are commonly used to route traces between layers and for thermal management.

## Example

```tsx
export default () => (
    <board width={5} height={5}>
      <via
        fromLayer="top"
        toLayer="bottom"
        outerDiameter="0.8mm"
        holeDiameter="0.4mm"
        pcbX={0}
        pcbY={0}
      />
    </board>
  )
```

## Props

Commonly used: `name`, `fromLayer`, `toLayer`, `holeDiameter`, `outerDiameter`, `connectsTo`, `netIsAssignable`, `footprint`

## References

- Props: [ViaProps](https://github.com/tscircuit/props#viaprops-via)
- Source: [lib/components/via.ts](https://github.com/tscircuit/props/blob/main/lib/components/via.ts)
- Local docs: [docs/docs/elements/via.mdx](../docs/docs/elements/via.mdx)