Skip to content

docs(voltagesource): remove nonexistent amplitude/offset props and document actual VoltageSourceProps - #1054

Open
devbox-zero-ops wants to merge 1 commit into
tscircuit:mainfrom
devbox-zero-ops:docs/fix-voltagesource-props
Open

devbox-zero-ops wants to merge 1 commit into
tscircuit:mainfrom
devbox-zero-ops:docs/fix-voltagesource-props

Conversation

@devbox-zero-ops

Copy link
Copy Markdown

Summary

Aligns docs/elements/voltagesource.mdx with the actual VoltageSourceProps definition in @tscircuit/props (lib/components/voltagesource.ts).

What changed

  • Removed nonexistent amplitude and offset props from the properties table (as noted in tscircuit/circuit-json-to-spice#100, using those undocumented props silently produces a flat 0 V simulation).
  • Documented the actual supported props: peakToPeakVoltage, phase, waveShape (including "sawtooth"), pulse timing props (pulseDelay, riseTime, fallTime, pulseWidth, period), and small-signal AC props (acMagnitude, acPhase).

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 23, 2026 12:47am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 3b4ab556 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant