Invoice split — Record block
Freerecord-invoice-split · for app, billing, account pages
Invoice split
The merchant’s own invoice with a separate payment summary and actions for collection workflows.
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/record-invoice-splitUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import RecordInvoiceSplit from '@/components/trame/blocks/record/record-invoice-split.vue'
const props = {
title: "Invoice",
number: "INV-2026-0108",
issuedAt: "October 1, 2026",
dueAt: "October 31, 2026",
seller: {
name: "Management Services",
line1: "18 Weavers Street",
postalCode: "97205",
city: "Portland, OR",
country: "United States",
registration: "Demo company — fictional details"
},
buyer: {
name: "The Neighborhood Shop",
line1: "6 Workshop Lane",
postalCode: "80211",
city: "Denver, CO",
country: "United States"
},
lines: [
{
id: "line-0",
product: {
id: "service-0",
name: "Management workspace subscription"
},
quantity: 1,
unitPrice: 4900,
vatRate: 8.5
},
{
id: "line-1",
product: {
id: "service-1",
name: "Onboarding support"
},
quantity: 2,
unitPrice: 8000,
vatRate: 8.5
}
],
totals: {
subtotal: 22100,
tax: 1777,
total: 23877,
currency: "USD"
},
taxes: [
{
rate: 8.5,
base: 20900,
amount: 1777
},
{
rate: 0,
base: 1200,
amount: 0
}
],
payment: {
status: "unpaid",
label: "Due",
method: "Bank transfer",
remaining: 23877
},
download: "invoice.download",
pay: "invoice.pay",
options: {
note: "Please include the invoice number in your payment reference. Our bank details are on the downloadable document."
}
}
</script>
<template>
<RecordInvoiceSplit v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s heading |
| number* | string | Wordsthe invoice’s number |
| issuedAt* | string | Wordsformatted issue date supplied by the host |
| dueAt* | string | Wordsformatted due date supplied by the host |
| seller* | Seller | Datawho bills |
| buyer* | Buyer | Datawho is billed |
| lines* | Line[] | Datainvoice lines; unitPrice is before VAT in cents |
| totals* | Totals | Dataauthoritative invoice totals; subtotal excludes VAT |
| taxes* | Taxe[] | Dataauthoritative taxable base and VAT amount in cents for each rate |
| payment* | Payment | Datawhere the payment stands |
| download | string | Actiona named action of the page |
| pay | string | Actiona named action of the page |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Seller seller · 9 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe recipient’s name |
| line1* | string | Wordsstreet and number |
| line2 | string | Wordsa second address line: building, floor |
| postalCode* | string | Wordsthe postcode |
| city* | string | Wordsthe town |
| country* | string | Wordsthe country |
| phone | string | Wordsa phone number for the delivery |
| registration | string | Wordsthe company registration number |
| taxNumber | string | Wordsthe tax number |
Buyer buyer · 9 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe recipient’s name |
| line1* | string | Wordsstreet and number |
| line2 | string | Wordsa second address line: building, floor |
| postalCode* | string | Wordsthe postcode |
| city* | string | Wordsthe town |
| country* | string | Wordsthe country |
| phone | string | Wordsa phone number for the delivery |
| registration | string | Wordsthe company registration number |
| taxNumber | string | Wordsthe tax number |
Line lines[] · 9 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | Datathe record’s id in the tool that answers it |
| product* | Product | the product on the line |
| variant | string | Wordsthe chosen options, written out ("Navy · 42") |
| unitPrice* | number | an amount in cents |
| compareAt | number | an amount in cents |
| quantity* | number | how many, at least 1 |
| maxQuantity | number | the most the line may hold |
| note | string | Wordsa line note: a gift, a delivery delay |
| vatRate* | number | the VAT rate, 0 to 100 |
Product lines[].product · 4 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe product’s name |
| image | string | null | Picturethe main picture; null or absent: the product has none yet |
| alt | string | Wordswhat the main picture shows |
Totals totals · 11 props
| Prop | Type | Description |
|---|---|---|
| subtotal* | number | an amount in cents |
| discount | number | an amount in cents |
| discountLabel | string | Wordswhat the discount is, e.g. a code’s name |
| shipping | number | null | null: computed at the next step |
| shippingLabel | string | Wordsthe delivery method, e.g. "Standard delivery" |
| fees | number | fees the shop charges on top (service, handling), when it does |
| feesLabel | string | Wordswhat the fees are ("Service fee") |
| tax | number | an amount in cents |
| taxIncluded | boolean | true: the prices include tax |
| total* | number | an amount in cents |
| currency | string | DesignISO 4217, EUR by default |
Taxe taxes[] · 3 props
| Prop | Type | Description |
|---|---|---|
| rate* | number | the tax rate, 0 to 100 |
| base* | number | the amount it is computed on, in cents |
| amount* | number | the tax amount, in cents |
Payment payment · 5 props
| Prop | Type | Description |
|---|---|---|
| status* | 'unpaid' | 'paid' | 'partial' | 'cancelled' | the payment’s status: unpaid, paid, partial, cancelled |
| label* | string | Wordsthe payment’s name, as shown |
| method | string | Wordshow it was paid, e.g. "Bank transfer" |
| paid | number | the amount paid, in cents |
| remaining | number | the amount still due, in cents |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| note | string | Wordsa short note on the section |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| money | formats a price, given in cents |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
download,pay - Reads
invoicefrom your app
A record section, for app, billing, account pages; it uses @lucide/vue.
More record blocks
- Customer case view stacked: A customer-facing case page showing only the merchant’s own public replies and a reply form, without internal notes or macros.
- Detail page: a record read top to bottom: header with its status and actions, fields in sections, linked lists beneath.
- Detail split: a record read mostly for its linked lists: its fields in a narrow column beside them.
- Facets tabbed: a record with many facets (overview, items, documents, history): one panel at a time, the tab kept in the address.
- Profile sidebar: a person or an organisation: a side rail with identity, stored counters and key facts, the work in the main column.
- Shipment detail map band: the map as a wide band under the header with the route and facts in a card over it, the feed in full width below: a team that reads where the shipment is first; positions and times from the carrier only.
- Shipment detail map beside: the route, stage track, facts and carrier feed in one column, the map beside them at the height of the screen: a team working the shipment’s events; positions and times from the carrier only.
- Support ticket workspace: A support case desk with the merchant’s own conversation, internal notes, reply macros and customer orders aside.