Files
Checkmate/node_modules/@mui/base/utils/useTextNavigation.d.ts
T

11 lines
490 B
TypeScript
Raw Normal View History

2024-05-05 11:21:00 +03:30
import * as React from 'react';
/**
* @ignore - internal hook.
*
* Provides a handler for text navigation.
* It's used to navigate a list by typing the first letters of the options.
*
* @param callback A function to be called when the navigation should be performed.
* @returns A function to be used in a keydown event handler.
*/
export declare function useTextNavigation(callback: (searchString: string, event: React.KeyboardEvent) => void): (event: React.KeyboardEvent) => void;