@ntragas/pouncejstest
Version:
A collection of UI components from Panther labs
9 lines (8 loc) • 321 B
TypeScript
import React from 'react';
interface UseEscapeKeyProps {
ref: React.RefObject<HTMLElement> | React.MutableRefObject<HTMLElement>;
callback: (event: KeyboardEvent) => void;
disabled?: boolean;
}
declare const useEscapeKey: ({ ref, callback, disabled }: UseEscapeKeyProps) => void;
export default useEscapeKey;