@tscircuit/schematic-viewer
v1.4.3
Published
[![npm version](https://badge.fury.io/js/@tscircuit%2Fschematic-viewer.svg)](https://badge.fury.io/js/@tscircuit%2Fschematic-viewer)
Downloads
4,857
Readme
Schematic Viewer for TSCircuit
Examples · TSCircuit · Open in CodeSandbox · discord
View schematics from tscircuit jsx.
Usage
import { Schematic } from "@tscircuit/schematic-viewer"
// To get styles for debug table
import "react-data-grid/lib/styles.css"
export const MyReactApp = () => (
return (
<Schematic>
<resistor name="R1" />
<capacitor name="C1" />
<trace from=".R1 > .1" to=".C1 > .plus">
</Schematic>
)
)