Download wp-calypso/packages/components/src/screen-reader-text/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/screen-reader-text/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/screen-reader-text/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/screen-reader-text/docs/example.jsx
503 Bytes
| 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'; | |