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:
| Parameter | Type | Req? | Description |
|---|---|---|---|
isAuthenticated | boolean | No | Indicates authentication status. Use to conditionally show registration or redirect to account. |
onRedirectLogin | function | No | Callback to redirect to login. Use for custom login routing. |
onRedirectAccount | function | No | Callback to redirect to account after registration. Use for custom navigation. |
onSuccess | function | No | Callback function triggered on successful completion. Use to implement custom success handling, navigation, or notifications. |
onError | function | No | Callback function triggered when an error occurs. Use to implement custom error handling, logging, or user notifications. |
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 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);