@uimkit/uikit-react
Version:
<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>
27 lines (24 loc) • 941 B
TypeScript
import React__default from 'react';
import { AvatarProps } from '../Avatar/Avatar.js';
type UIUserItemProps = {
/** The user */
entity: {
/** The parts of the Name property of the entity (or id if no name) that can be matched to the user input value.
* Default is bold for matches, but can be overwritten in css.
* */
itemNameParts: {
match: string;
parts: string[];
};
/** Id of the user */
id?: string;
/** Image of the user */
avatar?: string;
/** Name of the user */
name?: string;
};
/** Custom UI component to display user avatar, defaults to and accepts same props as: [Avatar](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Avatar/Avatar.tsx) */
Avatar?: React__default.ComponentType<AvatarProps>;
};
export { UIUserItemProps };
//# sourceMappingURL=UIUserItem.d.ts.map