Skip to main content

<pinheader />

Overview

The <pinheader /> element is used to create a male or female pin header with configurable spacing and number of pins.

Example

export default () => (
<pinheader
name="J1"
pinCount={8}
gender="male"
pitch="2.54mm"
doubleRow={true}
showSilkscreenPinLabels={true}
pinLabels={["VCC", "GND", "SDA", "SCL", "MISO", "MOSI", "SCK", "CS"]}
x={10}
y={10}
/>
)
Schematic Circuit Preview

Properties

PropertyTypeDefaultDescription
pinCountnumber(required)Number of pins in the header
pitchnumber | string"2.54mm"Distance between pins
schFacingDirection"up" | "down" | "left" | "right""right"Direction the header faces in schematic view
gender"male" | "female""male"Whether the header is male or female
showSilkscreenPinLabelsbooleanfalseWhether to show pin labels in silkscreen
doubleRowbooleanfalseWhether the header has two rows of pins
holeDiameternumber | string"1mm"Diameter of the through-hole for each pin
platedDiameternumber | string"1.7mm"Diameter of the plated area around each hole
pinLabelsstring[]undefinedLabels for each pin
facingDirection"left" | "right""right"Direction the header is facing
xnumber0X position of the component
ynumber0Y position of the component
rotationnumber0Rotation of the component in degrees
idstringauto-generatedUnique identifier for the component