-
Notifications
You must be signed in to change notification settings - Fork 0
Nodes
Zavier Miller edited this page Dec 28, 2023
·
6 revisions
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" |
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" |
Prints empty lines on the receipt
Prop name | Description | Possible values | Default |
---|---|---|---|
lines | How many empty lines to print | number |
1 |
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.
Prints children with a black background and white text.
This node takes no props.
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.
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 |
Smooths the text printed by the receipt printer
This node takes no props.
Don't see a node for a printer feature you need? Open an issue and request we add it!