Skip to main content

<jumper />

Overview

A <jumper /> represents a small multi-pin connector, commonly a male or female header using a pinrow style footprint. You can think of it as a flexible connector that can be placed anywhere on the board much like a <chip />.

export default () => (
<board width="10mm" height="10mm">
<jumper name="J1" footprint="pinrow4" />
</board>
)
Schematic Circuit Preview

The example above is adapted from the core tests.

Properties

<jumper /> shares many of the common component properties such as pcbX, pcbY and footprint. The full TypeScript interface is defined in @tscircuit/props:

export interface JumperProps extends CommonComponentProps {
manufacturerPartNumber?: string
pinLabels?: Record<number | string, string | string[]>
schPinStyle?: SchematicPinStyle
schPinSpacing?: number | string
schWidth?: number | string
schHeight?: number | string
schDirection?: "left" | "right"
schPortArrangement?: SchematicPortArrangement
/** Number of pins on the jumper (2 or 3) */
pinCount?: 2 | 3
/**
* Groups of pins that are internally connected
* e.g., [["1","2"], ["2","3"]]
*/
internallyConnectedPins?: string[][]
}

Jumpers are often placed using footprints such as pinrow8 or pinrow6_female_rows2, but you can also provide a custom <footprint /> just like with <chip />.

Internally Connected Pins

Use the internallyConnectedPins prop when the jumper has pins that should be shorted (bridged) together by default. Pins can be referenced by their labels.

export default () => (
<board width="10mm" height="10mm">
<jumper
name="J2"
footprint="pinrow3"
pinCount={3}
pinLabels={{ 1: "A", 2: "B", 3: "C" }}
internallyConnectedPins={[["A", "B"], ["B", "C"]]}
/>
</board>
)
Schematic Circuit Preview
PropertyTypeDescription
pinCount2 | 3Number of pins on the jumper
internallyConnectedPinsstring[][]Groups of pins that are internally connected
manufacturerPartNumberstringManufacturer part number
pinLabelsRecord<number | string, string | string[]>Labels for pins or sets of pins
schPinStyleSchematicPinStyleStyle used for pins in the schematic
schPinSpacingnumber | stringSpacing between schematic pins
schWidthnumber | stringWidth of the schematic symbol
schHeightnumber | stringHeight of the schematic symbol
schDirection"left" | "right"Direction the jumper faces in the schematic
schPortArrangementSchematicPortArrangementArrangement of ports in the schematic