From ef103e15bc03671ab5055e364a1a346050903f94 Mon Sep 17 00:00:00 2001 From: Mustafa Mulla Date: Tue, 23 Jun 2026 19:12:45 +0530 Subject: [PATCH 1/2] Document schDisplayLabel for trace --- docs/elements/trace.mdx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/elements/trace.mdx b/docs/elements/trace.mdx index 788d291d..00198f0a 100644 --- a/docs/elements/trace.mdx +++ b/docs/elements/trace.mdx @@ -36,6 +36,7 @@ Here's a simple example connecting two components: | -------- | ----------- | ------- | | `from` | Starting point of the trace using a [port selector](../guides/tscircuit-essentials/port-and-net-selectors.md) | `".R1 > .pin1"` | | `to` | Ending point of the trace using a [port selector](../guides/tscircuit-essentials/port-and-net-selectors.md) | `".C1 > .pin1"` | +| `schDisplayLabel` | Schematic label text to render for the trace instead of an autogenerated fallback net label (optional) | `"SENSE"` | | `maxLength` | Maximum length the trace can be (optional) | `"10mm"` | | `minLength` | Minimum length the trace must be (optional) | `"5mm"` | | `width` | Width of the trace (optional) | `"0.2mm"` | @@ -57,6 +58,30 @@ Traces can connect to named nets like power and ground: ) `} /> +## Custom Schematic Labels + +Use `schDisplayLabel` when you want a trace to show a specific net label in the schematic. This is useful for direct port-to-port traces, where the renderer would otherwise fall back to an autogenerated label based on the connected ports. + + ( + + + + + + + ) +`} /> + +`schDisplayLabel` controls the schematic label that is drawn for the trace; it does not rename the underlying net. + ## Autorouting Traces are automatically routed by tscircuit's [autorouting system](./board.mdx#setting-the-autorouter). The autorouter will: From 8d3cbc790624120bcb30c128135f556ea547ed7d Mon Sep 17 00:00:00 2001 From: Mustafa Mulla Date: Tue, 23 Jun 2026 19:52:40 +0530 Subject: [PATCH 2/2] upd --- docs/elements/trace.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/elements/trace.mdx b/docs/elements/trace.mdx index 00198f0a..a95719d6 100644 --- a/docs/elements/trace.mdx +++ b/docs/elements/trace.mdx @@ -1,6 +1,5 @@ --- title: -sidebar_position: 5 description: >- The `` element represents an electrical connection between two or more points in your circuit. Traces can connect components, nets, or specific