UNPKG

@plteam/chat-ui

Version:

CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript

8 lines (7 loc) 406 B
import * as React from 'react'; export type BoxRefType = React.MutableRefObject<HTMLDivElement | null>; export declare const useElementRef: <T extends HTMLElement = HTMLDivElement>() => React.MutableRefObject<T | null>; export declare const useElementRefState: <T extends HTMLElement = HTMLDivElement>() => { element: T | null; setElement: React.Dispatch<React.SetStateAction<T | null>>; };