UNPKG

@goodpath/react-chat-components

Version:

PubNub Chat Components is a development kit of React components that aims to help you to easily build Chat applications using PubNub infrastructure. It removes the complexicity of picking an adequate Chat engine, learning its APIs and dealing with its low

14 lines (13 loc) 590 B
import { FC } from "react"; import "./typing-indicator.scss"; export interface TypingIndicatorProps { /** Option to put a typing indicator inside the MessageList component to render indicators as messages. */ showAsMessage?: boolean; } /** Subscribes to events generated by MessageInput to display information about users that are * currently typing messages. * * It can be displayed as a text denoting the user's name, or in a form similar to * a message that can be renderer inside MessageList. */ export declare const TypingIndicator: FC<TypingIndicatorProps>;