UNPKG

@xapp/chat-widget

Version:
28 lines (27 loc) 704 B
import 'rollup-plugin-inject-process-env'; import { WidgetMenuItems } from "@xapp/stentor-chat-widget"; import { FC } from "react"; import "./ChatMenu.scss"; export interface ChatMenuProps { /** * Menu items */ readonly items: readonly WidgetMenuItems[]; readonly tabIndex?: string; /** * Direction the drawer opens from, defaults to "bottom" */ readonly openFrom?: "left" | "bottom"; /** * Is the menu opened */ readonly opened: boolean; /** * This will only return for the clickable labels. * * @param label */ onItemClick(label: string): void; } declare const ChatMenu: FC<ChatMenuProps>; export default ChatMenu;