UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

43 lines (42 loc) 1.21 kB
import React, { FC } from 'react'; import { UserInfoData } from '../../component/userItem'; export interface ContactListProps { style?: React.CSSProperties; className?: string; prefix?: string; onSearch?: (e: React.ChangeEvent<HTMLInputElement>) => boolean; onItemClick?: (info: { id: string; type: 'contact' | 'group' | 'request'; name: string; }) => void; menu?: ('contacts' | 'groups' | 'requests' | { title: string; data: ({ remark?: string; userId: string; } | { groupname: string; groupid: string; })[]; })[]; hasMenu?: boolean; checkable?: boolean; onCheckboxChange?: (checked: boolean, data: UserInfoData) => void; header?: React.ReactNode; checkedList?: { id: string; type: 'contact' | 'group'; name?: string; }[]; defaultCheckedList?: { id: string; type: 'contact' | 'group'; name?: string; }[]; searchStyle?: React.CSSProperties; searchInputStyle?: React.CSSProperties; searchPlaceholder?: string; } declare let ContactList: FC<ContactListProps>; export { ContactList };