@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
9 lines (8 loc) • 314 B
TypeScript
import React from 'react';
interface Options {
active: boolean | undefined;
onTrigger?: () => void;
onKeyDown?: (event: React.KeyboardEvent<any>) => void;
}
export declare function closeOnEscape(callback?: (event: any) => void, options?: Options): (event: React.KeyboardEvent<any>) => void;
export {};