Skip to content
Calm motion: animations on this site only fade, with no movement

Production counter ​

Good and scrap pieces against the target, with big buttons for a station

Counts the output of a station on a tablet at the line. Scrap is a piece that fails and goes to waste. The buttons are big, so an operator with gloves can hit them.

Basic
Good142of 200
Scrap3Yield 97.9%
  • v-model:good and v-model:scrap hold the counts. "+1 Good" and "+1 Scrap" add one each.
  • target is the number of good pieces for the shift. A bar shows how far the good count is.
  • The yield is the good pieces as a percent of all pieces.
  • "Undo the last count" takes back the last taps, one at a time.
  • After each tap, a hidden status line says both counts, so a screen reader user hears the result.
  • locale sets the format of the numbers. Change the words with labels or a label pack: title, good, scrap, addGood, addScrap, undo, and the functions target, yield, and said.

Usage ​

ts
import { BlessProductionCounter } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
targetnumber—how many good pieces the shift must make
localestring"en"
labelsPartial<{ title: string; good: string; scrap: string; addGood: string; addScrap: string; undo: string; target: (n: string) => string; yield: (percent: string) => string; said: (good: string, scrap: string) => string; }>—
goodnumber0
scrapnumber0

Events

NamePayloadDescription
update:good[value: number]
update:scrap[value: number]

Released under the MIT License. Character names and artwork belong to their owners.