File size: 503 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import ScreenReaderText from '..';
export default function ScreenReaderTextExample() {
const srText = "I'm visible for screen readers";
return (
<div>
<p>
This text is followed by the JSX "<ScreenReaderText>
{ srText }
</ScreenReaderText>". It is invisible on screen, but read out to screen readers.
Inspect to see the example.
</p>
<ScreenReaderText>{ srText }</ScreenReaderText>
</div>
);
}
ScreenReaderTextExample.displayName = 'ScreenReaderTextExample';
|