react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /slot-fill.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /slot-fill.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/slot-fill.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/slot-fill.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/slot-fill.tsx
-
curl -L -o slot-fill.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/slot-fill.tsx
379 Bytes
| import { Fill, Slot, SlotFillProvider } from '@wordpress/components'; | |
| const SlotFillExample = () => ( | |
| <SlotFillProvider> | |
| <h2>Profile</h2> | |
| <p> | |
| Name: <Slot bubblesVirtually name="name" /> | |
| </p> | |
| <p> | |
| Age: <Slot bubblesVirtually name="age" /> | |
| </p> | |
| <Fill name="name">Grace</Fill> | |
| <Fill name="age">33</Fill> | |
| </SlotFillProvider> | |
| ); | |
| export default SlotFillExample; | |