UNPKG

orgo-vnc

Version:

Embed cloud desktops in your React app

31 lines (28 loc) 884 B
import { CSSProperties } from 'react'; interface ComputerDisplayHandle { reconnect: () => void; disconnect: () => void; sendClipboard: (text: string) => boolean; pasteFromClipboard: () => Promise<boolean>; isConnected: boolean; } interface ComputerDisplayProps { hostname: string; password: string; readOnly?: boolean; background?: string; className?: string; style?: CSSProperties; scaleViewport?: boolean; clipViewport?: boolean; resizeSession?: boolean; showDotCursor?: boolean; compressionLevel?: number; qualityLevel?: number; onConnect?: () => void; onDisconnect?: (clean: boolean) => void; onError?: (error: string) => void; onClipboard?: (text: string) => void; onReady?: (handle: ComputerDisplayHandle) => void; } export type { ComputerDisplayProps as C, ComputerDisplayHandle as a };