vue3-chat-yz
Version:
vue3-chat-yz
20 lines (19 loc) • 525 B
TypeScript
import { BubbleProps } from '../Bubble/types';
export type BubbleDataType = {
key: number | string;
role?: string;
[key: string]: any;
} & BubbleProps;
export type RoleType = Partial<Omit<BubbleProps, "content">>;
export interface BubbleListProps {
autoScroll?: boolean;
className?: string;
items: BubbleDataType[];
rootClassName?: string;
}
export interface scrollTopParameters {
behavior?: ScrollBehavior;
block?: ScrollLogicalPosition;
key?: number | string;
offset?: number;
}