office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
23 lines (16 loc) • 514 B
Markdown
One common usage of Announced is for appearance of search-like results, such as in contact fields or search boxes.
Search boxes, "To" line in mail clients
**User types the letter 'b' into a picker**: The component should announce the number of search results found.
With the code snippet below, the screen reader should announce "3 items found."
```tsx
public render(): JSX.Element {
return (
<Announced
id={announcedId}
message='3 items found'
/>
);
}
```