@primer/react
Version:
An implementation of GitHub's Primer Design System using React
12 lines (11 loc) • 840 B
TypeScript
import React from 'react';
export declare function useRovingTabIndex({ containerRef }: {
containerRef: React.RefObject<HTMLElement>;
}): void;
export declare function getNextFocusableElement(activeElement: HTMLElement, event: KeyboardEvent): HTMLElement | undefined;
export declare function getElementState(element: HTMLElement): 'open' | 'closed' | 'end';
export declare function getVisibleElement(element: HTMLElement, direction: 'next' | 'previous'): HTMLElement | undefined;
export declare function getFirstChildElement(element: HTMLElement): HTMLElement | undefined;
export declare function getParentElement(element: HTMLElement): HTMLElement | undefined;
export declare function getFirstElement(element: HTMLElement): HTMLElement | undefined;
export declare function getLastElement(element: HTMLElement): HTMLElement | undefined;