Skip to content

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

CompanyRegistration Container

Provides a company registration form for new B2B customers to create a company account.

Version: 1.0.0-beta27

Configuration

The CompanyRegistration container provides the following configuration options:

ParameterTypeReq?Description
isAuthenticatedbooleanNoIndicates authentication status. Use to conditionally show registration or redirect to account.
onRedirectLoginfunctionNoCallback to redirect to login. Use for custom login routing.
onRedirectAccountfunctionNoCallback to redirect to account after registration. Use for custom navigation.
onSuccessfunctionNoCallback function triggered on successful completion. Use to implement custom success handling, navigation, or notifications.
onErrorfunctionNoCallback function triggered when an error occurs. Use to implement custom error handling, logging, or user notifications.
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 CompanyRegistration container:

import { render as provider } from '@dropins/storefront-company-management/render.js';
import { CompanyRegistration } from '@dropins/storefront-company-management/containers/CompanyRegistration.js';
await provider.render(CompanyRegistration, {
isAuthenticated: true,
onRedirectLogin: onRedirectLogin,
onRedirectAccount: onRedirectAccount,
})(block);