Skip to main content

<schematictext />

Overview

<schematictext /> is a primitive element used to display standalone text on the schematic. It does not appear on the PCB.

export default () => (
<board width="10mm" height="10mm">
<schematictext text="Hello" schX={2} schY={3} color="red" anchor="center" />
</board>
)
Schematic Circuit Preview

Properties

PropertyTypeDescription
textstringThe text string to render.
schXlengthX coordinate of the text.
schYlengthY coordinate of the text.
anchorenumAnchor position such as "center", "left", "right", "top", "bottom", or corner positions. Defaults to "center".
fontSizenumberFont size in schematic units. Default 1.
colorstringColor of the text, specified as a hex string. Default "#000000".
schRotationangleRotation of the text in degrees. Default 0.