Skip to Content
ReferenceBanner catalogCustomer account login banner

Customer account login banner

Audience: CMS editors and developers.

Type: CustomerAccountLoginBanner. CMS typename: CustomerAccountLoginBanner.

This banner selects one action from the current authentication state. The customerLogin action starts authentication and uses its link as the OAuth return target. The customerAccount action opens the signed-in destination.

This banner includes the common banner properties. Its actions use the shared button group.

Properties

id●
string
required

CMS ID.

buttons●required

Exactly two actions are required: one customerLogin and one customerAccount. Both need authored text and a link.

Example

This fragment shows the complete action group. Other banner properties are separate.

const actions: Pick<CustomerAccountLoginBanner, 'buttons'> = { buttons: { items: [ { id: 'login', action: 'customerLogin', text: 'Sign in', style: 'primary', theme: null, url: { label: 'Account', isAbsolute: false, url: '/account', query: [], }, contactForm: null, }, { id: 'account', action: 'customerAccount', text: 'Open account', style: 'secondary', theme: null, url: { label: 'Account', isAbsolute: false, url: '/account', query: [], }, contactForm: null, }, ], align: 'left', width: 'intrinsic', overflow: 'wrap', }, };
Last updated on