Skip to content
Zavier Miller edited this page Dec 28, 2023 · 6 revisions

Preinstalled Nodes

Align

Specifies how all of its children should be aligned.

Prop name Description Possible values Default
mode Tells how to align the nodes children "left" | "center" | "right" "left"

Barcode

Puts a barcode encoding some data on the receipt

Prop name Description Possible values Default
data* The data to encode in the barcode string --
standard The barcode standard to use Standards.EAN13 | Standards.EAN8 | Standards.UPC_A | Standards.CODE39 Standards.CODE39
height The height of the barcode on the receipt number 80
width The width of the barcode on the receipt number 100
align Where to align the barcode on the receipt "left" | "center" | "right" "left"

Break

Prints empty lines on the receipt

Prop name Description Possible values Default
lines How many empty lines to print number 1

Fragment

Similarly to the React fragment node, this node is used when you need to have multiple root-level components or nodes in a component.

This node takes no props.

Inverse

Prints children with a black background and white text.

This node takes no props.

Receipt

The root level node for receipts. This node takes care of set up like initializing the printer and cutting at the end of the receipt.

This node takes no props.

Scale

Scales the width and height of children.

Prop name Description Possible values Default
width Scales the width of children [1, 5] undefined
height Scales the height of children [1, 5] undefined

Smooth

Smooths the text printed by the receipt printer

This node takes no props.

Text

Node plugins


Don't see a node for a printer feature you need? Open an issue and request we add it!

Clone this wiki locally