TidalUI

Customer profile preview

Review one customer's contact details, plan, notes and recent account activity.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/customer-profile

Import components/ui/tidal.css, components/ui/customer-profile.css. Wrap installed components in tidal-scope.

Preview

Customer profile component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/customer-profile.css";
import{TidalCustomerProfile}from"./components/ui/customer-profile";
export default()=><div className="tidal-scope"><TidalCustomerProfile customer={{name:"Demo"}}/></div>;

API and props

TidalCustomerProfile.customer (required)
TidalCustomerIdentity

Required customer value accepted by this exported component.

TidalCustomerProfile.actions
ReadonlyArray<TidalCustomerAction> | undefined

Optional actions value accepted by this exported component.

TidalCustomerProfile.activity
ReadonlyArray<TidalCustomerActivity> | undefined

Optional activity value accepted by this exported component.

TidalCustomerProfile.contacts
ReadonlyArray<TidalCustomerContact> | undefined

Optional contacts value accepted by this exported component.

TidalCustomerProfile.fields
ReadonlyArray<TidalCustomerField> | undefined

Optional fields value accepted by this exported component.

TidalCustomerProfile.headingLevel
"h2" | "h3" | "h4" | "h5" | undefined

Optional heading level value accepted by this exported component.

TidalCustomerProfile.health
TidalCustomerHealth | undefined

Optional health value accepted by this exported component.

TidalCustomerProfile.labels
Partial<{ profile: string; actions: string; contacts: string; details: string; health: string; plan: string; note: string; activity: string; emptyContacts: string; emptyDetails: string; emptyActivity: string; }> | undefined

Optional labels value accepted by this exported component.

TidalCustomerProfile.note
ReactNode

Optional note value accepted by this exported component.

TidalCustomerProfile.noteEditor
ReactNode

Optional note editor value accepted by this exported component.

TidalCustomerProfile.plan
TidalCustomerPlan | undefined

Optional plan value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas