Skip to content

tscircuit/pcb-viewer

Repository files navigation

@tscircuit/pcb-viewer

npm version

Examples · TSCircuit · Open in CodeSandbox

Render PCBs w/ React

Usage

npm install @tscircuit/pcb-viewer
import React, { useEffect, useRef } from "react"
import { PCBViewer } from "@tscircuit/pcb-viewer"

export default () => {
  return (
    <div style={{ backgroundColor: "black" }}>
      <PCBViewer>
        <resistor footprint="0805" resistance="10k" />
      </PCBViewer>
    </div>
  )
}