Skip to content

tscircuit/props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5727323 · Mar 24, 2025
Nov 4, 2024
Dec 26, 2024
Feb 28, 2025
Mar 21, 2025
Feb 28, 2025
Mar 24, 2025
Dec 29, 2024
Jan 24, 2025
Dec 19, 2024
Aug 15, 2024
Dec 29, 2024
Aug 27, 2024
Mar 24, 2025
Mar 21, 2025

Repository files navigation

@tscircuit/props

This repo contains all the prop definitions and zod parsers for tscircuit builtin components, e.g. <resistor />, <diode />, <capacitor /> etc.

This repo is the source-of-truth for defining the React props, API changes begin here. The focus of the API is on ergonomics for the user (unlike circuit-json which focuses on ergonomics for a renderer)

import type { ResistorProps, ResistorPropsInput } from "@tscircuit/props"
import { resistorProps } from "@tscircuit/props"

resistorProps.parse({ resistance: "10k" } as ResistorPropsInput)
// { resistance: 10_000 }