@tscircuit/schematic-viewer
TypeScript icon, indicating that this package has built-in type declarations

2.0.23 • Public • Published

@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>
    )}
  />
)

Readme

Keywords

none

Package Sidebar

Install

npm i @tscircuit/schematic-viewer

Weekly Downloads

2,080

Version

2.0.23

License

none

Unpacked Size

274 kB

Total Files

40

Last publish

Collaborators

  • seveibar