Skip to main content

Blocks

Compensation​

Onboarding step for collecting an employee's role and compensation details.

Remarks​

Collects the job title, employee type (hourly, salary), compensation amount, and pay period. For hourly employees, allows configuring multiple roles. Automatically routes between editing the only job (when an employee has zero or one non-Nonexempt job) and a jobs-list view (when multiple roles need to be managed) on first mount; on subsequent refetches the user stays on their current step.


Example​

import { EmployeeOnboarding } from '@gusto/embedded-react-sdk'

function MyComponent() {
return (
<EmployeeOnboarding.Compensation
employeeId="4b3f930f-82cd-48a8-b797-798686e12e5e"
startDate="2025-01-01"
onEvent={() => {}}
/>
)
}

CompensationProps​

Props for Compensation.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
startDatestringThe date the employee will start work.
defaultValues?CompensationDefaultValuesDefault values for the compensation form fields. If employee data is available via the API, these values are overwritten.
dictionary?Record<"en", DeepPartial<EmployeeCompensation>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/job/createdFired after a job is successfully createdJob
employee/job/updatedFired after a job is successfully updatedJob
employee/job/deletedFired after a job is successfully deleted—
employee/compensation/updatedFired after compensation details are updatedCompensation
employee/compensation/doneFired when compensation setup is complete and the parent flow can advance—

Endpoints​


Deductions​

Onboarding step for collecting an employee's post-tax deductions and court-ordered garnishments.

Remarks​

Renders the employee's current deductions as a list, with an empty state when none exist. Users add or edit deductions inline — post-tax custom deductions or court-ordered garnishments — and can complete the step with or without any active deductions.


Example​

import { EmployeeOnboarding } from '@gusto/embedded-react-sdk'

function MyComponent() {
return (
<EmployeeOnboarding.Deductions
employeeId="4b3f930f-82cd-48a8-b797-798686e12e5e"
onEvent={() => {}}
/>
)
}

DeductionsProps​

Props for Deductions.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeDeductions>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/deductions/addFired when the user opens the form to add a new deduction—
employee/deductions/editFired when the user opens the form to edit an existing deductionThe matching Garnishment
employee/deductions/createdFired after a new deduction is savedThe created Garnishment
employee/deductions/updatedFired after an existing deduction is updatedThe updated Garnishment
employee/deductions/deletedFired after a deduction is deleted and others remainThe deleted Garnishment
employee/deductions/deletedEmptyFired after the last deduction is deleted, leaving none—
employee/deductions/cancelFired when the user cancels the form while other deductions exist—
employee/deductions/cancelEmptyFired when the user cancels the form and no deductions remain—
employee/deductions/doneFired when the step is complete and the parent flow can advance—

Endpoints​


DocumentList​

Lists the employee's documents pending signature.

Remarks​

Fetches the employee's forms and renders the list of documents that still require signing along with a continue action once everything is signed.

Each form's description is rendered as returned by the API, unless the dictionary prop supplies a forms.<name>.description override for that form's name (e.g. forms.employee_direct_deposit.description).


DocumentListProps​

Props for DocumentList.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeDocumentSigner>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/forms/viewFired when a form's "Sign" action is selected{ uuid: string; name?: string }
employee/forms/doneFired when all required forms have been signed and the parent flow can advance—

Endpoints​


DocumentSigner​

Onboarding step for signing employee documents.

Remarks​

Lists the employee's pending forms and routes through the signing UI for each one. When withEmployeeI9 is true and the employee's I-9 has not been signed, the flow starts on the I-9 employment eligibility step before presenting the document list.

Each form's description is rendered as returned by the API, unless the dictionary prop supplies a forms.<name>.description override for that form's name (e.g. forms.employee_direct_deposit.description).


DocumentSignerProps​

Props for DocumentSigner.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeDocumentSigner>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
withEmployeeI9?booleanWhen true, the flow routes through I-9 employment eligibility before listing documents for signing. Defaults to false.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/employmentEligibility/doneFired after I-9 employment eligibility is capturedThe updated I-9 authorization
employee/forms/viewFired when a form's "Sign" action is selected from the document list{ uuid: string; name?: string }
employee/forms/signFired after a form is successfully signedAPIModels.Form
employee/employmentEligibility/changeFired when the user requests to change their I-9 eligibility status—
employee/forms/doneFired when all required forms have been signed and the parent flow can advance—
cancelFired when the user cancels signing a form and returns to the document list—

Components​


Endpoints​


EditCompensation​

Renders a form for creating or editing one of an employee's jobs together with its compensation.

Remarks​

The submit chain saves the job first, then the compensation. The employee/job_created or employee/job_updated event fires once the job is saved; employee/compensation_updated fires once the compensation is saved and signals the full save is complete.


EditCompensationProps​

Props for EditCompensation.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Event handler fired on flow state changes. See the events table on EditCompensation.
submitCtaLabelstringLabel for the primary submit button.
titlestringHeading text shown above the form.
currentJobId?string | nullExisting job to edit. When omitted, a new job is created on submit.
dictionary?Record<"en", DeepPartial<EmployeeCompensation>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
LoaderComponent?LoaderComponentTypeCustom loading indicator rendered while this component's async data is fetching. Overrides the indicator configured on GustoProvider for this instance only.
onCancel?() => voidOptional handler invoked when the secondary cancel button is clicked.
partnerDefaultValues?CompensationDefaultValuesInitial values for the job title and compensation fields.
startDate?stringWhen provided, the hire date is pre-filled from this value and the hire date field is hidden. When absent, the hire date field is rendered so it can be set explicitly.

Inherits children, className, defaultValues from CommonComponentInterface.


Events​

EventDescriptionData
employee/job_createdFired when a new job is saved.The saved Job.
employee/job_updatedFired when an existing job is saved.The saved Job.
employee/compensation_updatedFired when the compensation is saved. Treat as the "save complete" signal.The saved Compensation.

EmployeeDocuments​

Onboarding step for selecting which documents the employee must complete.

Remarks​

Shows the I-9 toggle when the employee is self-onboarding (so the employee can choose whether their employer will collect I-9 verification) and a summary otherwise. Persists the selection to the employee's onboarding documents configuration and advances the parent flow.


EmployeeDocumentsProps​

Props for EmployeeDocuments.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeEmployeeDocuments>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/onboardingDocumentsConfig/updatedFired after the employee's documents configuration is savedThe updated documents configuration response
employee/documents/doneFired when the step is complete and the parent flow can advance—

Endpoints​


EmployeeList​

Renders a paginated list of a company's employees with per-row onboarding actions (edit, delete, review, cancel self-onboarding) and an "Add employee" entry point.


EmployeeListProps​

Props for EmployeeList.

PropertyTypeDefault valueDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeEmployeeList>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
showContinueButton?booleanfalseControls visibility of the Continue button in the employee list. Remarks When true, displays a Continue button below the populated employee list and a Skip button in the empty state. These controls trigger the employee/onboarding/done event, allowing navigation to the next step in a multi-step flow (e.g., company onboarding). When false (default), hides both buttons. Use this when the employee list is the final destination in its flow and no further navigation is needed (e.g., standalone employee onboarding where the list is the terminal screen).

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/createFired when the user clicks "Add employee".—
employee/updateFired when the user selects "Edit" or "Review" on a row.{ employeeId: string, onboardingStatus?: OnboardingStatus }
employee/deletedFired after a row's delete action completes.{ employeeId: string }
employee/onboardingStatus/updatedFired after the "Review" or "Cancel self-onboarding" action updates an employee's onboarding status.The updated EmployeeOnboardingStatus record
employee/onboarding/doneFired when the user clicks the skip/done control to leave the onboarding employee list.—

Endpoints​


EmploymentEligibility​

Captures the employee's I-9 employment eligibility (Section 1) before signing.

Remarks​

Collects the employee's authorization status — U.S. citizen, noncitizen national, permanent resident, or alien authorized to work — and any document details required for that status. Updates the employee's I-9 authorization record on submit.


EmploymentEligibilityProps​

Props for EmploymentEligibility.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeEmploymentEligibility>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/employmentEligibility/doneFired after the I-9 authorization is savedThe updated I-9 authorization

Endpoints​


FederalTaxes​

Onboarding step for collecting an employee's federal tax (W-4) withholdings — filing status, multiple-jobs flag, dependents, other income, deductions, and extra withholding.

Remarks​

The federal tax record is created automatically with the employee, so this step is always in update mode. Only the revised 2020 W-4 format is supported. All fields are required by the bundled form, mirroring the IRS-form UX.


FederalTaxesProps​

Props for FederalTaxes.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked when the block emits an event. See the events table on FederalTaxes for the available event types and payloads.
defaultValues?Partial<FederalTaxesFormData>Pre-fill form values. Server data takes precedence when the employee already has values on file.
dictionary?Record<"en", DeepPartial<EmployeeFederalTaxes>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/federalTaxes/updatedFired after the form is savedThe updated EmployeeFederalTax entity
employee/federalTaxes/doneFired after a successful save so the parent flow can advance—

Endpoints​


I9SignatureForm​

Presents the employee's I-9 form for review and signature.

Remarks​

Renders the I-9 PDF, surfaces the current employment-eligibility status, and collects the employee's signature along with any preparer or translator details. On successful submission the signed form is emitted.


I9SignatureFormProps​

Props for I9SignatureForm.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
formIdstringThe identifier of the I-9 form to sign.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeI9SignatureForm>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/forms/signFired after the I-9 is successfully signedAPIModels.Form
employee/employmentEligibility/changeFired when the user requests to change their I-9 eligibility status—
cancelFired when the user cancels signing and returns to the document list—

Endpoints​


JobsList​

Lists an employee's jobs alongside their compensation details, with controls to add, edit, or remove a job.

Remarks​

Used for employees who hold multiple roles. The primary job's FLSA classification determines whether the employee is treated as exempt or nonexempt.


JobsListProps​

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeCompensation>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/job/addFired when the user chooses to add a jobnone
employee/job/editFired when the user chooses to edit a job{ uuid: string }
employee/job/deletedFired after a job is successfully deletednone
employee/compensations/doneFired when the user continues past the jobs listnone

Endpoints​


Landing​

Landing page for the employee self-onboarding flow. Displays a welcome message and the list of onboarding steps the employee needs to complete.


LandingProps​

Props for the Landing component.

PropertyTypeDescription
employeeIdstringUUID of the employee entering the self-onboarding flow.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
companyId?stringDeprecated UUID of the company the employee belongs to.
dictionary?Record<"en", DeepPartial<EmployeeLanding>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Endpoints​


OnboardingSummary​

Displays a summary of an employee's onboarding status, listing completed and outstanding steps. Rendered as a standalone step inside OnboardingFlow.


OnboardingSummaryProps​

Props for OnboardingSummary.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeOnboardingSummary>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
isAdmin?booleanWhen true, renders the admin-facing view of the onboarding summary. Defaults to false.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Endpoints​


PaymentMethod​

Onboarding step for setting up an employee's payment method.

Remarks​

Lets the employee (or admin acting on their behalf) choose between Direct Deposit and Check, add bank accounts, and configure split-paycheck allocations across multiple accounts.


Example​

import { EmployeeOnboarding } from '@gusto/embedded-react-sdk'

function MyComponent() {
return (
<EmployeeOnboarding.PaymentMethod
employeeId="4b3f930f-82cd-48a8-b797-798686e12e5e"
onEvent={() => {}}
/>
)
}

PaymentMethodProps​

Props for PaymentMethod.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
defaultValues?undefinedNot used — onboarding payment method editing operates on live data.
dictionary?Record<"en", DeepPartial<EmployeePaymentMethod>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
isAdmin?booleanWhether the current viewer is an admin. Defaults to false.

Inherits children, className, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/paymentMethod/updatedFired after the payment method is savedThe updated payment method
employee/paymentMethod/doneFired when payment method setup is complete and the parent flow can advance—
employee/bankAccount/createdFired after a bank account is successfully addedThe created bank account
employee/bankAccount/deletedFired after a bank account is successfully removed—

Endpoints​


Profile​

Onboarding step for collecting an employee's basic profile and addresses.

Remarks​

Switches between an admin-facing variant (collects employee details, work address, start date, and an optional self-onboarding invitation toggle) and an employee-facing variant (collects employee details and home address only — the active work address is read-only) based on isAdmin. Both variants create the employee on submit when employeeId is omitted.


ProfileProps​

Props for Profile.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
defaultValues?ProfileDefaultValuesPre-fill values for the form fields.
dictionary?Record<"en", DeepPartial<EmployeeProfile>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
employeeId?stringThe associated employee identifier. Omit to create a new employee.
isAdmin?booleanWhen true, renders the admin variant (collects work address, start date, and self-onboarding toggle). Defaults to false.
isSelfOnboardingEnabled?booleanWhen true, the admin variant exposes the self-onboarding toggle. Defaults to true.

Inherits children, className, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/createdFired after an employee is successfully createdAPIModels.Employee
employee/updatedFired after an employee is successfully updatedAPIModels.Employee
employee/onboardingStatus/updatedFired when toggling self-onboarding changes the employee's onboarding status (admin variant)The updated onboarding status
employee/homeAddress/createdFired after the home address is createdAPIModels.EmployeeAddress
employee/homeAddress/updatedFired after the home address is updatedAPIModels.EmployeeAddress
employee/workAddress/createdFired after the work address is created (admin variant)APIModels.EmployeeWorkAddress
employee/workAddress/updatedFired after the work address is updated (admin variant)APIModels.EmployeeWorkAddress
employee/profile/doneFired when all profile saves complete and the parent flow can advanceAPIModels.Employee extended with startDate (admin variant)

Endpoints​


SignatureForm​

Presents a single employee document for review and signature.

Remarks​

Renders the form's PDF and collects the employee's signature. On successful submission the signed form is emitted; cancelling returns to the document list.


SignatureFormProps​

Props for SignatureForm.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
formIdstringThe identifier of the form to sign.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeDocumentSigner>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/forms/signFired after the form is successfully signedAPIModels.Form
cancelFired when the user cancels signing and returns to the document list—

Endpoints​


StateTaxes​

Onboarding step that collects an employee's per-state tax withholding answers. The set of fields is driven by the API response for each state on record.


StateTaxesProps​

Props for StateTaxes.

PropertyTypeDescription
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<EmployeeStateTaxes>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
isAdmin?booleanRender admin-only questions and submit them. Defaults to false.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events​

EventDescriptionData
employee/stateTaxes/updatedForm was submitted successfully{ employeeStateTaxesList: EmployeeStateTaxesList[] }
employee/stateTaxes/doneOnboarding step has finished — emitted immediately after updated—

Endpoints​


Utility types​

CompensationDefaultValues​

CompensationDefaultValues = RequireAtLeastOne<{ flsaStatus?: FlsaStatusType; paymentUnit?: typeof PAY_PERIODS[keyof typeof PAY_PERIODS]; rate?: Job["rate"]; title?: Job["title"]; }>

Default values for the compensation form fields.

Remarks​

At least one of the fields must be provided. If employee data is available via the API, these values are overwritten.


OnboardingDefaultValues​

OnboardingDefaultValues = RequireAtLeastOne<{ compensation?: CompensationDefaultValues; profile?: ProfileDefaultValues; }>

Default values for the onboarding flow's per-step form components.

Remarks​

At least one of the step-level keys must be provided. Per-step values are forwarded to the matching step component (e.g. profile to Profile, compensation to Compensation). If employee data is available via the API, the corresponding values are overwritten.


OnboardingExecutionInitialState​

OnboardingExecutionInitialState = "employeeProfile"

The set of steps OnboardingExecutionFlow can be started on.


ProfileDefaultValues​

ProfileDefaultValues = RequireAtLeastOne<{ employee?: RequireAtLeastOne<{ dateOfBirth?: string; email?: string; firstName?: string; lastName?: string; middleInitial?: string; }>; homeAddress?: RequireAtLeastOne<{ city?: string; state?: string; street1?: string; street2?: string; zip?: string; }>; inviteEmployeeDefault?: boolean; }>

Pre-fill values for the Profile onboarding step.

Remarks​

At least one of the listed fields must be provided. When employee data is already available via the API, those values take precedence over the defaults.