markdown-flow-ui
Version:
A React UI library for rendering markdown with interactive flow components, typewriter effects, and plugin support
17 lines (16 loc) • 599 B
TypeScript
import { RefObject } from 'react';
interface UseScrollToBottomOptions {
behavior?: "smooth" | "auto";
autoScrollOnInit?: boolean;
scrollDelay?: number;
scrollThreshold?: number;
}
interface UseScrollToBottomReturn {
showScrollToBottom: boolean;
scrollToBottom: () => void;
handleUserScrollToBottom: () => void;
isAtBottom: boolean;
followNewContent: boolean;
}
declare const useScrollToBottom: (containerRef: RefObject<HTMLDivElement | null>, dependencies?: any[], options?: UseScrollToBottomOptions) => UseScrollToBottomReturn;
export default useScrollToBottom;