Screens
A Screen is one piece of payroll UI. You list the Screens a person may see when you create a Session, then render one at a time with <friendly-payroll>.
Each Screen carries exactly the access it needs, so you never assign roles. Give people access by choosing which Screens their Sessions include.
Employer Screens
Section titled “Employer Screens”For someone at the business: an owner, admin or bookkeeper. The Session has no worker, except for Screens that are about one Worker.
| Screen | Needs a worker | Extra events |
|---|---|---|
employer-dashboard | No | — |
employer-onboarding | No | — |
employer-onboard-workers | No | — |
payroll-run-list | No | — |
run-payroll | No | runpayrollview, runpayrollclick, runpayrollcompleted |
employer-setup-personalization | No | — |
employer-taxes-setup | No | — |
employer-sign-documents | No | — |
employer-pay-groups | No | — |
employer-address-list | No | — |
employer-bank-accounts | No | bankaccountauthorized, bankaccountcreated, bankaccountverified |
employer-profile | No | — |
employer-documents | No | — |
employer-reports | No | — |
worker-profile | Yes | — |
onboard-worker | Yes | — |
Worker Screens
Section titled “Worker Screens”For a Worker looking at their own pay and documents. The Session must include the worker.
| Screen | Extra events |
|---|---|
worker-onboarding | — |
worker-self-managed-profile | — |
worker-payment-list | — |
worker-documents | — |
Options
Section titled “Options”Some Screens accept options. Pass them through the options attribute or property, or the options prop in React. The ScreenOptions type in @friendlypayroll/embed lists the options for every Screen. Common ones:
| Screen | Option | Description |
|---|---|---|
employer-onboarding |
includeSteps |
Which onboarding steps to show, e.g. ["tax-info", "pay-schedule", "add-company-bank"]. |
employer-dashboard |
showPayrollRunReports |
Show reports for each payroll run. |
employer-profile |
includeCards |
Which sections to show, e.g. ["business", "addresses", "banks"]. |
worker-profile |
includeCards |
Which sections to show, e.g. ["personal", "compensations", "pay-distributions"]. |
worker-self-managed-profile |
includeCards |
["personal", "pay-distributions", "taxes-setup"]. |
worker-onboarding |
showWelcomeView |
Show the welcome step. |
| Several setup Screens | title, closeDisabled |
Override the heading, or hide the close button. |
IDs and display mode are always set by Friendly Payroll, and any you pass are ignored.