react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /snackbar.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /snackbar.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/snackbar.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/snackbar.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/snackbar.tsx
-
curl -L -o snackbar.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/snackbar.tsx
347 Bytes
| import { Snackbar } from '@wordpress/components'; | |
| const SnackbarExample = () => { | |
| const content = 'Use Snackbars with an action link to an external page.'; | |
| const actions = [ | |
| { | |
| label: 'Open WP.org', | |
| url: 'https://wordpress.org', | |
| }, | |
| ]; | |
| return <Snackbar actions={ actions }>{ content }</Snackbar>; | |
| }; | |
| export default SnackbarExample; | |