UNPKG

@clayui/shared

Version:
22 lines (21 loc) 773 B
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ import React from 'react'; export declare function isFocusable({ contentEditable, disabled, href, offsetParent, rel, tabIndex, tagName, type, }: { contentEditable?: string | boolean; disabled?: string | boolean; href?: string; offsetParent?: Element | null; rel?: string; tabIndex?: string | number; tagName?: string; type?: string; }): boolean; export declare const FOCUSABLE_ELEMENTS: string[]; export declare function useFocusManagement(scope: React.RefObject<null | HTMLElement>): { focusFirst: () => any; focusNext: (persistOnScope?: boolean) => any; focusPrevious: (persistOnScope?: boolean) => any; };