Components/POS Cart

POS Cart

Sale items with qty +/- controls, subtotal/discount/tax/total breakdown. Read-only or interactive.


Carrinho(3 itens)

  • Coca-Cola 350ml

    2 × R$ 5,50

    R$ 11,00
  • Pão de queijo

    4 × R$ 4,00

    R$ 16,00
  • Café espresso

    1 × R$ 6,50R$ 1,50

    sem açúcar

    R$ 5,00
Subtotal
R$ 32,00
Imposto (5%)
R$ 1,60
Total
R$ 33,60

Installation

npx @ajax-ui/cli add pos-cart

Props

  • items - array of { id, name, qty, unitPrice, discount?, note? }.
  • currency "BRL" · locale "pt-BR".
  • taxRate (0–1) · discount - cart-level reductions applied to subtotal.
  • onQtyChange · onRemove · onClear - control handlers.
  • readOnly - hides +/- and remove buttons; renders as a static summary.