Download wp-calypso/client/components/breadcrumb/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/breadcrumb/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/breadcrumb/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/breadcrumb/docs/example.jsx
540 Bytes
| import Breadcrumb from 'calypso/components/breadcrumb'; | |
| const BreadcrumbExample = () => { | |
| const navigationItems = [ | |
| { label: 'Plugins', href: `/plugins` }, | |
| { label: 'Search', href: `/plugins?s=woo` }, | |
| { label: 'Woocommerce' }, | |
| ]; | |
| return ( | |
| <> | |
| <Breadcrumb items={ [ { label: 'Plugins' } ] } /> | |
| <br /> | |
| <Breadcrumb items={ navigationItems } /> | |
| <br /> | |
| <Breadcrumb items={ navigationItems } mobileItem="Go Back" compact /> | |
| </> | |
| ); | |
| }; | |
| BreadcrumbExample.displayName = 'Breadcrumb'; | |
| export default BreadcrumbExample; | |