mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 22:30:56 +00:00
10 lines
409 B
TypeScript
10 lines
409 B
TypeScript
export interface UseFocusWithinOptions {
|
|
onFocus?: (event: FocusEvent) => void;
|
|
onBlur?: (event: FocusEvent) => void;
|
|
}
|
|
export interface UseFocusWithinReturnValue<T extends HTMLElement = any> {
|
|
ref: React.RefCallback<T | null>;
|
|
focused: boolean;
|
|
}
|
|
export declare function useFocusWithin<T extends HTMLElement = any>({ onBlur, onFocus, }?: UseFocusWithinOptions): UseFocusWithinReturnValue<T>;
|