s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Commerce · Components

CustomerDetail

Props for the customer detail/summary surface.

Public export

typescript
import { CustomerDetail } from '@happyvertical/smrt-commerce/svelte';
Import path
@happyvertical/smrt-commerce/svelte
Props
12
Props described
12 of 12
Bindable state
0
Callback events
0
Verified release
0.57.40

Props

NameTypeRequiredDescription
customerCustomerDisplayDataYesCustomer and Profile projection to render.
labelsPartySurfaceLabelsNoCustomer terminology and action-label overrides.
contactLabelsPartyContactLabelsNoContact terminology overrides.
backHrefstringNoCaller-owned URL back to the customer directory.
editHrefstringNoCaller-owned URL for editing this customer.
canEditbooleanNoControls whether the edit affordance is presented.
currencystringNoISO currency code used to display the minor-unit credit limit.
minorUnitExponentnumberNoCurrency exponent used only for minor-unit display conversion.
localestringNoLocale used for currency display.
extensionPartyExtension<CustomerDisplayData>NoConsumer content rendered after the standard customer sections.
headlessbooleanNoOmits the built-in page header (title, subtitle, and its create/edit action) for hosts that frame the page themselves.
headerSnippetNoReplaces the built-in page header; not rendered when `headless` is set.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation