Skip to content

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

CompanyStructure Container

Displays and manages the company organizational hierarchy with teams and user assignments.

Version: 1.0.0-beta27

Configuration

The CompanyStructure container provides the following configuration options:

ParameterTypeReq?Description
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.
withHeaderbooleanNoControls whether to render the container header section. Set to false when embedding the container within a layout that already provides its own header to avoid duplicate navigation elements.
isAuthenticatedbooleanNoIndicates authentication status. Use to conditionally render content or trigger login.
onRedirectLoginfunctionNoCallback to redirect to login. Use for custom login routing.
onRedirectAccountfunctionNoCallback to redirect to account. Use for custom navigation.

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
StructureDataSlotPropsNoCustomize company structure hierarchy display.

Usage

The following example demonstrates how to use the CompanyStructure container:

import { render as provider } from '@dropins/storefront-company-management/render.js';
import { CompanyStructure } from '@dropins/storefront-company-management/containers/CompanyStructure.js';
await provider.render(CompanyStructure, {
className: "Example Name",
withHeader: true,
isAuthenticated: true,
slots: {
// Add custom slot implementations here
}
})(block);