@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
11 lines (10 loc) • 579 B
TypeScript
import { FC } from 'react';
import { AnnouncerProps, CompoundProps } from './ScreenReaderAnnouncer.types';
/**
* Component which will cause a screen reader to announce a message when required.
* To allow for multiple announcers to exist concurrently, each announcer must have a unique identity.
* If no identity is provided, a default one is used (useful for a top level announcer).
* If an announcer with a duplicate identity is mounted, an error will occur.
*/
declare const ScreenReaderAnnouncer: FC<AnnouncerProps> & CompoundProps;
export default ScreenReaderAnnouncer;