MustafaMulla29/pcb-notes

This code defines a 10mm-by-10mm electronic PCB layout featuring a top-layer etched note, text label, dimension arrow, red routing path, and a straight line.

Version
0.0.1
License
unset
Stars
0

index.tsx

PCBPCB preview for index.tsx
SchematicSchematic preview for index.tsx
export default () => (
  <board width="10mm" height="10mm">
    <pcbnoterect  height="3" width="5" strokeWidth="0.05" color="cyan"/>
    <pcbnotetext text="PCB Note" color=""/>
    <pcbnotedimension
      from={{ x: -3, y: 2 }}
      to={{ x: 3, y: 2 }}
      arrowSize={0.8}
      fontSize={1.5}
      color="#ffffff"
    />

    <pcbnotepath
    strokeWidth={0.3}
    color="#ff0000"
    route={[
      { x: -5, y: 0 },
      { x: 0, y: 5 },
      { x: 5, y: 0 },
    ]}
  />
     <pcbnoteline
    x1={-5}
    y1={0}
    x2={5}
    y2={0}
    strokeWidth={0.5}
    color="#ff0000"
  />
  </board>
)