Skip to main content
Built-in Elements

<schematictable />

Overview

The <schematictable /> element is a primitive drawing component used to create tabular data in schematic representations. It's useful for creating pin tables, component specifications, or any structured data in your schematics.

export default () => (
<board width="20mm" height="20mm">
<schematictable
schX={0}
schY={0}
borderWidth={0.05}
fontSize={0.3}
cellPadding={0.15}
>
<schematicrow height={0.6}>
<schematiccell text="Component" />
<schematiccell text="Value" horizontalAlign="center" />
<schematiccell text="Package" />
</schematicrow>
<schematicrow height={0.6}>
<schematiccell text="R1" />
<schematiccell text="10k" horizontalAlign="center" />
<schematiccell text="0805" />
</schematicrow>
<schematicrow height={0.6}>
<schematiccell text="C1" />
<schematiccell text="100nF" horizontalAlign="center" />
<schematiccell text="0402" />
</schematicrow>
<schematicrow height={0.6}>
<schematiccell text="U1" colSpan={3} horizontalAlign="center" text="ATmega328P" />
</schematicrow>
</schematictable>
</board>
)
Schematic Circuit Preview

Props

Schematictable Props

PropertyTypeRequiredDefaultDescription
schXdistanceNo-X position of the table center in schematic coordinates
schYdistanceNo-Y position of the table center in schematic coordinates
cellPaddingdistanceNo-Padding inside each cell
borderWidthdistanceNo-Width of the table border
anchorenumNo"center"Anchor position (e.g., "center", "left", "top-left")
fontSizedistanceNo-Font size for cell text

Schematicrow Props

PropertyTypeRequiredDefaultDescription
heightdistanceNo1Height of the row

Schematiccell Props

PropertyTypeRequiredDefaultDescription
textstringNo-Text content of the cell (alternative to children)
childrenstringNo-Text content of the cell
horizontalAlign"left" | "center" | "right"No"center"Horizontal text alignment
verticalAlign"top" | "middle" | "bottom"No"middle"Vertical text alignment
fontSizedistanceNo-Font size for cell text
rowSpannumberNo1Number of rows the cell spans
colSpannumberNo1Number of columns the cell spans
widthdistanceNo-Width of the cell