react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /visually-hidden.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /visually-hidden.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/visually-hidden.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/visually-hidden.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/visually-hidden.tsx
-
curl -L -o visually-hidden.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/visually-hidden.tsx
654 Bytes
| import { VisuallyHidden } from '@wordpress/components'; | |
| const VisuallyHiddenExample = () => ( | |
| <> | |
| <div> | |
| <VisuallyHidden>This should not show.</VisuallyHidden> | |
| <div> | |
| This text will <VisuallyHidden as="span">but not inline </VisuallyHidden> always show. | |
| </div> | |
| </div> | |
| <hr /> | |
| <div> | |
| Additional class names passed to VisuallyHidden extend the component class name.{ ' ' } | |
| { /* eslint-disable-next-line wpcalypso/jsx-classname-namespace */ } | |
| <VisuallyHidden as="label" className="test-input"> | |
| Check out my class!{ ' ' } | |
| </VisuallyHidden> | |
| Inspect the HTML to see! | |
| </div> | |
| </> | |
| ); | |
| export default VisuallyHiddenExample; | |