Skip to content

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

CompanyRegistration Container

Overview

The CompanyRegistration container component for the drop-in.

Version: 1.0.0-beta16

Configuration

The CompanyRegistration container provides the following configuration options:

ParameterTypeReq?Description
isAuthenticatedbooleanNoWhether the authenticated state is active
onRedirectLogin() => voidNoCallback function triggered when redirect login
onRedirectAccount() => voidNoCallback function triggered when redirect account
onSuccess(company: Company) => voidNoCallback function triggered when success
onError(errors: string[]) => voidNoCallback function triggered when error
classNamestringNoAdditional CSS classes to apply to the container

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
slotsCompanyFormSlotsNoCustom slot for rendering slots

Usage

The following example demonstrates how to use the CompanyRegistration container:

import { CompanyRegistration } from '@dropins/storefront-company-management';
export default function MyComponent() {
return (
<CompanyRegistration
isAuthenticated={true}
onRedirectLogin={() => console.log('RedirectLogin')}
onRedirectAccount={() => console.log('RedirectAccount')}
/>
);
}