ValyroUI Русская версия

Invoice

Printable invoice: line items, taxes, discounts and totals in any currency. Pro · Shop and payments › Cart and orders

Print-ready invoice: parties, dates, line items with quantity, unit price, tax and discounts, totals per tax rate in the invoice currency, notes and terms. Printing drops the page chrome, the actions and the theme's colours.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add invoice
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { Invoice } from 'valyro-ui-pro';

Props

PropTypeDefault
number *stringInvoice number, e.g. "INV-2026-0042".
status'draft' | 'open' | 'paid' | 'overdue' | 'void'Badge next to the title. paid labels the headline amount "Paid"; paid and void hide the due date under it.
issueDate *DateInputDate the invoice was issued, listed with the number.
dueDateDateInputPayment due date, listed with the number and under the headline amount.
from *InvoicePartySender: their name doubles as the brand next to logo, and their details fill the From block.
to *InvoicePartyCustomer, shown in the Bill to block.
items *InvoiceLineItem[]Line items; subtotal, discounts, tax per rate and the total are computed from them.
currencystring'USD'ISO 4217 code; amounts are minor units of it. Default USD.
shippingnumberMinor units added after tax.
amountPaidnumberMinor units already paid; adds "Amount paid" and "Amount due".
logoReactNodeBrand mark shown before the sender's name.
meta{ label: ReactNode; value: ReactNode }[][]Extra rows next to the dates, e.g. { label: 'PO number', value: 'PO-8812' }.
notesReactNodeFree text under the totals, e.g. a thank-you or payment instructions.
termsReactNodePayment terms under the totals, next to notes.
actionsReactNodeButtons above the document (Download, Print, Pay); hidden when printing. Put the primary one last: on a phone it moves first and takes the full width.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<InvoiceLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Order Tracking · Next: Credit Card · All Shop and payments