All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.HotkeysProvider.d.ts Maven / Gradle / Ivy

import { Hotkey } from './types';
import { ReactNode } from 'react';
export declare type HotkeysContextType = {
    hotkeys: ReadonlyArray;
    enabledScopes: string[];
    toggleScope: (scope: string) => void;
    enableScope: (scope: string) => void;
    disableScope: (scope: string) => void;
};
export declare const useHotkeysContext: () => HotkeysContextType;
interface Props {
    initiallyActiveScopes?: string[];
    children: ReactNode;
}
export declare const HotkeysProvider: ({ initiallyActiveScopes, children }: Props) => import("react").JSX.Element;
export {};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy