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

# `<capacitor />`

A `<capacitor />` stores electrical energy in an electric field. Capacitors are commonly used for filtering, energy storage, and timing circuits. Unlike resistors, capacitors can be polarized (like electrolytic capacitors) or non-polarized (like ceramic capacitors).

## Example

```tsx
export default () => (
 <board width="10mm" height="10mm">
  <capacitor
    name="C2"
    footprint="axial_p5mm"
    capacitance="10μF"
    polarized
  /> 
</board>
)
```

## Props

Commonly used: `capacitance`, `maxVoltageRating`, `schShowRatings`, `polarized`, `decouplingFor`, `decouplingTo`, `bypassFor`, `bypassTo`

## References

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