UNPKG

@react-libraries/virtual-window

Version:
38 lines (37 loc) 853 B
import React, { FC } from "react"; import { WindowDispatch } from "../../Hooks/useWindow"; import { WindowState } from "../../Types/types"; declare type Props = { /** * Active Style * * @type boolean */ active?: boolean; titleSize?: number; state?: WindowState; frameSize?: number; buttons?: { [key in "min" | "max" | "close"]?: boolean; }; dispatch?: WindowDispatch; onMouse?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>) => void; children?: React.ReactNode; }; /** *TitleBar * * @param {Props} { * active=false, * children, * state, * frameSize = 1, * buttons, * onMouse, * dispatch, * titleSize = 32, * } * @return {*} */ export declare const TitleBar: FC<Props>; export {};