Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

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:

ParameterTypeReq?Description
routeMyAccountfunctionNoGenerates the URL for navigating to the customer account page after successful invitation acceptance. Returns a URL string. Use to implement custom routing logic.
routeLoginfunctionNoGenerates the URL for navigating to the login page. Returns a URL string. Use to implement custom routing logic.
isAuthenticatedbooleanNoIndicates the current user authentication status. Controls whether to show invitation acceptance form or redirect authenticated users.
labelsobjectNoProvides 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.
classNamestringNoAdds 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);