@kitn.ai/ui
Version:
Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.
20 lines (19 loc) • 994 B
TypeScript
import { JSX } from 'solid-js';
interface ChatContainerContextValue {
isAtBottom: () => boolean;
scrollToBottom: (behavior?: ScrollBehavior) => void;
}
export declare function useChatContainer(): ChatContainerContextValue;
export interface ChatContainerRootProps extends JSX.HTMLAttributes<HTMLDivElement> {
children: JSX.Element;
}
declare function ChatContainerRoot(props: ChatContainerRootProps): JSX.Element;
export interface ChatContainerContentProps extends JSX.HTMLAttributes<HTMLDivElement> {
children: JSX.Element;
}
declare function ChatContainerContent(props: ChatContainerContentProps): JSX.Element;
export interface ChatContainerScrollAnchorProps extends JSX.HTMLAttributes<HTMLDivElement> {
ref?: HTMLDivElement | ((el: HTMLDivElement) => void);
}
declare function ChatContainerScrollAnchor(props: ChatContainerScrollAnchorProps): JSX.Element;
export { ChatContainerRoot as ChatContainer, ChatContainerRoot, ChatContainerContent, ChatContainerScrollAnchor, };