Printer

Use a Printer to render any hardware variables as text.


Screenshot of component Printer basic

Usage

Printers accept standard accessor strings or StateTree as discussed in the accessors and writers guide.

import { Printer } from '@electricui/components-desktop'
<Printer accessor="distance" />

Precision

The precision of floating point numbers is controllable. By default a Printer will render integers without decimal places 128, and floats with two decimal places 3.14.

Screenshot of component Printer with-precision
  1. <Printer accessor="intensity" precision={0} />
  2. <Printer accessor="intensity" precision={1} />
  3. <Printer accessor="intensity" precision={2} />
  4. <Printer accessor="intensity" precision={4} />
  5. <Printer accessor="intensity" precision={8} />

Prop Reference

Failed to grab component information for Checkbox