Employee Dashboard Widget
Embed Vitable's employee benefits dashboard into your application with the Vitable Connect SDK.

The Employee Dashboard Widget gives an employee Vitable’s complete benefits experience inside your application. It requires an employee-bound access token.
Before You Begin
- Complete the shared Vitable Drops setup.
- Create the employee through the Vitable API and store their
empl_ID. - Configure the provider with
createTokenFetcher("employee", employeeId).
Add the Widget
Place EmployeeViewWidget inside the VitableConnectProvider configured for the current employee.
Props
Layout
Events
onEnrollmentComplete receives one item per selected plan with the enrollment ID, benefit code, and status.
Switch Employees Safely
Set the provider’s contextKey to the active employee ID. When the employee changes, the SDK discards the old session and asks your backend for a newly bound token:
Do not render the widget until your backend has confirmed that the signed-in user may access currentEmployeeId.

