You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Contractor Onboarding workflow provides components for managing contractor-related onboarding tasks. These components can be used individually or composed into a complete workflow.
See events table for each subcomponent to see available events.
Events from subcomponents bubble up through the onEvent handler.
Using Contractor Subcomponents
Contractor onboarding components can be used to compose your own workflow, or can be rendered in isolation. For guidance on creating a custom workflow, see docs on composition.
Available Subcomponents
Contractor.ContractorList
Contractor.ContractorProfile
Contractor.Address
Contractor.PaymentMethod
Contractor.NewHireReport
Contractor.ContractorSubmit
Contractor.ContractorList
Displays a list of contractors for a company, allowing users to add new contractors, edit existing ones, delete contractors, and continue the onboarding process.
Optional success message to display after a contractor action.
onEvent (Required)
See events table for available events.
Events
Event type
Description
Data
CONTRACTOR_CREATE
Fired when user chooses to add a new contractor
None
CONTRACTOR_UPDATE
Fired when user selects a contractor to edit
{ contractorId: string }
CONTRACTOR_DELETED
Fired when a contractor is deleted
{ contractorId: string }
CONTRACTOR_ONBOARDING_CONTINUE
Fired when user chooses to continue onboarding
None
Contractor.ContractorProfile
A comprehensive form for creating and editing contractor profiles. Supports both individual and business contractor types, with different field sets for each. Includes options for wage type, self-onboarding invitations, and start date.
Handles new hire reporting requirements for the contractor. Behavior varies based on whether the contractor is going through admin onboarding or self-onboarding.
Finalizes the contractor onboarding process. Updates the onboarding status and, in the self-onboarding flow, can trigger an invitation to the contractor.