UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

15 lines (14 loc) 650 B
import { type JSXSlot } from "@cn-ui/reactive"; import "../animation/fade.css"; import { type VirtualListProps } from "../virtualList"; export interface ChatBoxMessage { id: string; avatar?: string; message: JSXSlot; position?: "right" | "left"; create_at?: string; } export interface ChatBoxProps<T extends ChatBoxMessage> extends Pick<VirtualListProps<T>, "each" | "estimateSize"> { onSendMessage?: (text: string) => Promise<void>; } export declare const ChatBox: <T extends ChatBoxMessage>(props: import("@cn-ui/reactive").OriginComponentOutputType<ChatBoxProps<T>, HTMLDivElement, T[]>) => import("solid-js").JSX.Element;