AcceptInvitation Container
Processes company invitation acceptance from email links and displays the result to the user.
Version: 1.0.0
Configuration
The AcceptInvitation container provides the following configuration options:
| Parameter | Type | Req? | Description |
|---|---|---|---|
routeMyAccount | function | No | Generates the URL for navigating to the customer account page after successful invitation acceptance. Returns a URL string. Use to implement custom routing logic. |
routeLogin | function | No | Generates the URL for navigating to the login page. Returns a URL string. Use to implement custom routing logic. |
isAuthenticated | boolean | No | Indicates the current user authentication status. Controls whether to show invitation acceptance form or redirect authenticated users. |
labels | object | No | Provides custom labels for the invitation acceptance UI. Includes optional fields: title, loadingText, successTitle, successMessage, errorTitle, myAccountButton, loginButton. Use to customize text for localization or branding. |
className | string | No | Adds custom CSS classes to the container element. Use to override default styles, integrate with existing design systems, or apply conditional styling based on application state. |
Slots
This container does not expose any customizable slots.
Usage
The following example demonstrates how to use the AcceptInvitation container:
import { render as provider } from '@dropins/storefront-company-management/render.js';import { AcceptInvitation } from '@dropins/storefront-company-management/containers/AcceptInvitation.js';
await provider.render(AcceptInvitation, {})(block);