Replace components
When to use
Prefer this when you only need branded pieces (avatar, conversation row, composer, drawers) while keeping the default layout and data wiring. Only keys you pass are overridden - omit everything else.
Passing undefined for a key is the same as omitting it. Confirm the slot is listed as wired in the Components table before debugging why an override seems ignored.
Need a completely different shell? See Replace entire UI. For visual polish only, use classNames.
Example
<ChatMain {...chatConfig} components={{ Avatar: MyAvatar, ChannelListItem: MyConversationRow, MessageItem: MyMessageBubble, MessageInput: MyComposer, PhoneCallButton: MyPhoneBtn, MembersDrawer: MyMembersPanel, }}/>White-label slots
The four slots most apps replace first. Everything else stays the package default.
<ChatMain {...chatConfig} components={{ MessageItem: MyMessage, Avatar: MyAvatar, EmptyState: MyEmpty, Header: MyHeader, }}/>Replacing Header also replaces the drawers inside it, so the drawer slots only apply while you keep the built-in header. packageDefaultComponents holds every built-in if you only want to wrap it.
ChannelListFilters
Replaces the sidebar tab bar. The package still owns the filtering; your component shows the tabs and calls onFilterChange. Pass ChannelListFilters: () => null to hide the bar, or restyle the built-in one with classNames.channelListFilters.
import type { ChannelListFiltersSlotProps } from "@convo-sco/sdk-react"; const MyFilters = ({ filters, activeFilterId, onFilterChange, unreadCount }: ChannelListFiltersSlotProps) => ( <div role="tablist" aria-label="Filter conversations" className="flex gap-2 px-3 py-2"> {filters .filter((f) => f.id !== "dms") // drop a tab .map((f) => ( <button key={f.id} role="tab" aria-selected={f.id === activeFilterId} onClick={() => onFilterChange(f.id)} > {f.id === "groups" ? "Teams" : f.label} {f.id === "unread" && unreadCount > 0 ? ` (${unreadCount})` : ""} </button> ))} </div>);Extra host data (UserMeta)
Each host project can carry its own fields on users (for example role or department). The backend returns a free-form metadata object, the package passes it through untouched, and your app decides what to show through the UserMeta slot. It renders under the email in the New message contact row (placement: "list") and the profile preview (placement: "preview"). Omit it and nothing changes.
import type { ChatComponents, UserMetaSlotProps } from "@convo-sco/sdk-react"; const UserRole = ({ user, placement }: UserMetaSlotProps) => { const role = user.metadata?.role; if (!role) return null; return <p className={placement === "list" ? "truncate text-xs" : "mt-1 text-[13px]"}>{String(role)}</p>;}; const components: ChatComponents = { UserMeta: UserRole }; // If the backend only returns the field on request:setChatQueryParamsByApi({ users: { include: "role" } });Messages already keep metadata from the API (MessageItem slot → message.metadata).
UserProfileCard
Clicking a sender's avatar or name opens a profile card: name, online / last seen, Message (opens or starts the direct chat) and voice / video call when a direct chat exists. Replace it with the UserProfileCard slot (props: UserProfileCardSlotProps).