pxlpal/test

This code defines a small 10mm x 10mm electronic PCB with a 1kΩ resistor, a 1000pF capacitor, and a trace connecting their first pins.

Usage: To import and use this package: 1. Import the component from the package: ```tsx import { ResistorComponent } from "@tsci/pxlpal.test" ``` 2. Use the component in a tscircuit board: ```tsx <board width="10mm" height="10mm"> <ResistorComponent resistance="1k" footprint="0402" name="R1" /> </board> ``` Key points: - Use standard tscircuit board component props - Specify required properties like resistance and footprint - Add a unique name for referencing

Version
0.0.1
License
unset
Stars
0

dist/index.js

PCBPCB preview for dist/index.js
SchematicSchematic preview for dist/index.js
var index = () => /*#__PURE__*/React.createElement("board", {
  width: "10mm",
  height: "10mm"
}, /*#__PURE__*/React.createElement("resistor", {
  resistance: "1k",
  footprint: "0402",
  name: "R1"
}), /*#__PURE__*/React.createElement("capacitor", {
  capacitance: "1000pF",
  footprint: "0402",
  name: "C1"
}), /*#__PURE__*/React.createElement("trace", {
  from: ".R1 > .pin1",
  to: ".C1 > .pin1"
}));

export { index as default };