Stablev0.1.0invoice

eGUIInvoice

電子發票元件

電子發票顯示元件,含賣方/買方資訊、品項列表、金額合計、QR Code。

Display component for Taiwan e-invoices with seller/buyer info, item list, totals, and optional QR code.

Installation

CLI

npx taiwan-ui add egui-invoice

npm package

npm install @taiwan-ui/react

Live Demo

電子發票證明聯

AB-12345678

114/03/15

賣方台灣科技股份有限公司
賣方統編04595252
品項數量單價小計
雲端服務月費1$2,400$2,400
資料備份方案2$300$600
技術支援1$500$500
合計NT$ 3,500

此為電子發票證明聯,與實體發票具同等效力

Props API

PropTypeDefault
invoiceNumber*string
date*string
sellerName*string
sellerTaxIdstring
buyerTaxIdstring
items*InvoiceItem[]
totalAmount*number
qrCodeUrlstring
compactbooleanfalse

Playground

Props

發票號碼

發票日期

賣方名稱

賣方統編

買方統編

合計金額

QR Code 圖片網址

隱藏品項明細

Generated code
import eGUIInvoice from "@/components/taiwan/eGUIInvoice";

export default function Example() {
  return (
    <eGUIInvoice />
  );
}

Code Examples

import eGUIInvoice from "@/components/taiwan/eGUIInvoice";

export default function MyPage() {
  return (
    <eGUIInvoice
      invoiceNumber="AB12345678"
      date="114/03/15"
      sellerName="台灣科技股份有限公司"
      items={[
        { name: "商品 A", quantity: 2, unitPrice: 150 },
        { name: "商品 B", quantity: 1, unitPrice: 300 },
      ]}
      totalAmount={600}
    />
  );
}
電子發票eGUIdisplayQR Code

Related Components