Skip to content
Calm motion: animations on this site only fade, with no movement

Payslip ​

The pay of a period with earnings, deductions, and the net pay

Shows one salary statement in an HR or payroll app. Your payroll system does the math of tax and benefits. The component adds up the lines and shows them.

Basic

Payslip

Home Studio

Employee
Budi Santoso · EMP-007
Sound engineer
Period
November 2026
Pay day
25 November 2026
Earnings
Base payRp 9.500.000
Overtime, 6 hoursRp 720.000
TransportRp 500.000
Total earningsRp 10.720.000
Deductions
Income tax−Rp 536.000
Health insurance−Rp 95.000
Pension−Rp 190.000
Total deductions−Rp 821.000
Net payRp 9.899.000
  • employee has a name, and an optional id and role. company, period, and payDate are text.
  • earnings and deductions are lists of lines, each with a label and an amount. Each list is a table with a caption and a total.
  • The net pay is the earnings less the deductions, in a dark band at the end.
  • In print, the frame goes away.
  • currency is an ISO 4217 code (default USD), and locale sets the format.
  • Change the words with labels or a label pack: title, employee, period, payDate, earnings, deductions, totalEarnings, totalDeductions, and net.

Usage ​

ts
import { BlessPayslip } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
employee*{ name: string; id?: string | undefined; role?: string | undefined; }—
companystring—
period*string—the pay period, as text, for example "November 2026"
payDatestring—the pay day, as text
earnings*BlessPayLine[]—
deductionsBlessPayLine[][]
currencystring"USD"
localestring"en"
labelsPartial<{ title: string; employee: string; period: string; payDate: string; earnings: string; deductions: string; totalEarnings: string; totalDeductions: string; net: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.