Skip to content

tscircuit/schematic-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7f4554f · May 5, 2025

History

46 Commits
Dec 10, 2024
Dec 19, 2024
May 1, 2025
May 5, 2025
Dec 10, 2024
Dec 19, 2024
Dec 10, 2024
Dec 25, 2024
Dec 19, 2024
May 3, 2025
Dec 10, 2024
Dec 10, 2024
Dec 10, 2024
May 5, 2025
Dec 10, 2024
Dec 10, 2024

Repository files navigation

@tscircuit/schematic-viewer

React component for viewing Circuit JSON or tscircuit as a schematic

Warning

This is the 2.X.X schematic viewer, you may want to use the old 1.X.X version

import { SchematicViewer } from "@tscircuit/schematic-viewer"

export default () => (
  <SchematicViewer
    circuitJson={renderToCircuitJson(
      <board width="10mm" height="10mm">
        <resistor name="R1" resistance={1000} schX={-2} />
        <capacitor name="C1" capacitance="1uF" schX={2} />
        <trace from=".R1 .pin2" to=".C1 .pin1" />
      </board>
    )}
  />
)