Download wp-calypso/client/devdocs/design/wordpress-components-gallery/tooltip.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/tooltip.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/tooltip.tsx
-
curl -L -o tooltip.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/tooltip.tsx
376 Bytes
| import { Tooltip } from '@wordpress/components'; | |
| const TooltipExample = () => ( | |
| <Tooltip text="More information" position="top center"> | |
| <div | |
| style={ { | |
| margin: '50px auto', | |
| width: '200px', | |
| padding: '20px', | |
| textAlign: 'center', | |
| border: '1px solid #ccc', | |
| } } | |
| > | |
| Hover for more information | |
| </div> | |
| </Tooltip> | |
| ); | |
| export default TooltipExample; | |