ValyroUI English version

Invoice

Счёт для печати: позиции, налоги, скидки и итоги в валюте. Pro · Магазин и платежи › Корзина и заказ

Установка

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';

Пропсы

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.

Похожие компоненты

  • Shopping Cart Drawer — Выдвижная корзина
  • Checkout Summary — Сводка оформления заказа
  • Checkout Form — Оформление заказа: доставка, тип адреса, оплата и проверка полей
  • Order Tracking — Отслеживание заказа: этапы, перевозчик, трек-номер и история
  • Product Card — Карточка товара
  • Product Grid — Каталог товаров
  • Product Filters — Фильтры каталога
  • Product Spotlight — Рекомендованный товар: фото с пометкой, цена, рейтинг и действия
  • Reviews Summary — Отзывы: средняя оценка, гистограмма-фильтр, сортировка и полезность
  • Guided Product Finder — Мастер подбора товара: вопросы с ветвлением и объяснение, почему подошло
  • Location Card — Точка продаж: расстояние, часы работы, способы получения и заказ
  • Credit Card — Банковская карта: градиент или две тональности, сеть по номеру, бесконтактная оплата

Назад: Order Tracking · Далее: Credit Card · Весь раздел «Магазин и платежи»