react-widgets
Version:
An à la carte set of polished, extensible, and accessible inputs built for React
9 lines • 465 B
TypeScript
import { RefObject } from 'react';
/**
* Do a "hard" set on the aria, so that it's always announced
* even if the id hasn't changed, this saves us from having to have a different id
* per item.
*/
export declare const setActiveDescendant: (ref: Element | null, activeId: string) => void;
export declare const useActiveDescendant: (ref: RefObject<Element>, id: string, visible: boolean | null | undefined, deps: any[]) => void;
//# sourceMappingURL=A11y.d.ts.map