Pos Retail Receipt
Retail receipt preview that can be printed or emailed from the register.
About this block
What it's for
- Retail receipt preview that can be printed or emailed from the register.
- Point of sale receipt with tax breakdown, tenders, change and return policy.
Includes
- Receipt paper
- Store header and footer
- Item lines with discounts
- Tax by rate
- Tender and change lines
- Returns on receipt
- Return policy text
- Decorative barcode
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add pos-retail-receiptInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/pos-retail-receiptUsed in
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- Sample data
- Ships with sample data in
history.ts,settings.ts,history-sales.ts,products.ts,customers.ts; replace it with your own.
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
- None
- Files
22 files
- components/agentic-ui/pos-retail-receipt/components/receipt-print.css
- components/agentic-ui/pos-retail-receipt/components/receipt-paper.tsx
- components/agentic-ui/pos-retail-receipt/lib/receipt.ts
- components/agentic-ui/pos-retail-receipt/lib/types.ts
- components/agentic-ui/pos-retail-receipt/lib/types-ops.ts
- components/agentic-ui/pos-retail-receipt/lib/money.ts
- components/agentic-ui/pos-retail-receipt/lib/derived.ts
- components/agentic-ui/pos-retail-receipt/lib/shifts.ts
- components/agentic-ui/pos-retail-receipt/lib/sales.ts
- components/agentic-ui/pos-retail-receipt/lib/tender.ts
- components/agentic-ui/pos-retail-receipt/lib/cart.ts
- components/agentic-ui/pos-retail-receipt/lib/returns.ts
- components/agentic-ui/pos-retail-receipt/lib/loyalty.ts
- components/agentic-ui/pos-retail-receipt/lib/dates.ts
- components/agentic-ui/pos-retail-receipt/data/history.ts
- components/agentic-ui/pos-retail-receipt/data/settings.ts
- components/agentic-ui/pos-retail-receipt/data/history-sales.ts
- components/agentic-ui/pos-retail-receipt/data/products.ts
- components/agentic-ui/pos-retail-receipt/lib/random.ts
- components/agentic-ui/pos-retail-receipt/lib/catalog.ts
- components/agentic-ui/pos-retail-receipt/lib/barcode.ts
- components/agentic-ui/pos-retail-receipt/data/customers.ts
Related components
Pos Retail Payment Panel
Split payment dialog with cash, card and gift card that computes change in exact cents.
Details and live previewA11y Contrast Badge
Check in the browser whether the theme palette meets AA before opening the PR.
Details and live previewA11y Focus Manager
Confirmation dialog that returns focus to the button that opened it.
Details and live previewA11y Live Announcer
Announce the number of results when filtering a table without reloading the page.
Details and live preview