UNPKG

465 BTypeScriptView Raw
1import { RefObject } from 'react';
2/**
3 * Do a "hard" set on the aria, so that it's always announced
4 * even if the id hasn't changed, this saves us from having to have a different id
5 * per item.
6 */
7export declare const setActiveDescendant: (ref: Element | null, activeId: string) => void;
8export declare const useActiveDescendant: (ref: RefObject<Element>, id: string, visible: boolean | null | undefined, deps: any[]) => void;
9//# sourceMappingURL=A11y.d.ts.map
\No newline at end of file