lomi.
lomi. UI

Customer information section

Hosted checkout personal information form with name, email, phone, and optional WhatsApp.

Customer information section

Matches customer-information-section.tsx in hosted checkout: full name, email, phone, and optional WhatsApp number.

Preview

*
*
*
My WhatsApp number is different

Installation

Install to your codebase

Copy the component source with shadcn.

npx shadcn@latest add https://docs.lomi.africa/r/customer-information-section.json

Usage

import { CustomerInformationSection } from '@/components/lomi-ui/customer-information-section';

<CustomerInformationSection
  fullName={fullName}
  email={email}
  phoneNumber={phoneNumber}
  whatsappNumber={whatsappNumber}
  isDifferentWhatsApp={isDifferentWhatsApp}
  onFullNameChange={setFullName}
  onEmailChange={setEmail}
  onPhoneNumberChange={setPhoneNumber}
  onWhatsAppNumberChange={setWhatsAppNumber}
  onDifferentWhatsAppChange={setIsDifferentWhatsApp}
/>;

Requires react-phone-number-input in your app.

Props

PropTypeDescription
fullNamestringControlled full name value.
emailstringControlled email value.
phoneNumberstringControlled E.164 phone value.
whatsappNumberstringControlled WhatsApp number when expanded.
isDifferentWhatsAppbooleanShows the WhatsApp field instead of the toggle row.
defaultCountryCountryDefault phone country. Defaults to CI.
onFullNameChange(value: string) => voidFull name change handler.
onEmailChange(value: string) => voidEmail change handler.
onPhoneNumberChange(value?: string) => voidPhone change handler.

On this page