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

40 lines (39 loc) 1.12 kB
import React, { FC, ReactNode } from 'react'; import { TooltipProps } from '../../component/tooltip/Tooltip'; export interface HeaderProps { className?: string; style?: React.CSSProperties; prefix?: string; content?: ReactNode; avatar?: ReactNode; presence?: { visible: boolean; text?: string; icon?: HTMLImageElement | string; }; subtitle?: ReactNode; icon?: ReactNode; back?: boolean; avatarSrc?: string; avatarShape?: 'circle' | 'square'; close?: boolean; suffixIcon?: ReactNode; renderContent?: () => React.ReactElement; onClickEllipsis?: () => void; moreAction?: { visible?: boolean; icon?: ReactNode; actions: Array<{ visible?: boolean; icon?: ReactNode; content: ReactNode; onClick?: () => void; }>; tooltipProps?: TooltipProps; }; onClickAvatar?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void; onClickClose?: () => void; onClickBack?: () => void; } declare const Header: FC<HeaderProps>; export { Header };