UNPKG

@uiwwsw/virtual-keyboard

Version:

**A revolutionary virtual keyboard solution for React that solves the Korean `composition` issue.**

19 lines (18 loc) 790 B
import { type Dispatch, type SetStateAction, type RefObject } from "react"; import type { VirtualInputHandle } from "./Input"; interface VirtualInputContextValue { inputRef: RefObject<VirtualInputHandle | null>; isCompositionRef: RefObject<boolean | undefined>; onFocus: (id: string, target?: HTMLElement | null) => void; onBlur: (e?: React.FocusEvent | boolean) => void; focusId: string | undefined; setHangulMode: Dispatch<SetStateAction<boolean>>; hangulMode: boolean; shift: boolean; theme: "light" | "dark"; toggleShift: () => void; toggleKorean: () => void; } export declare const VirtualInputContext: import("react").Context<VirtualInputContextValue>; export declare function useVirtualInputContext(): VirtualInputContextValue; export {};