react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /tab-panel.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /tab-panel.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/tab-panel.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/tab-panel.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/tab-panel.tsx
-
curl -L -o tab-panel.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/tab-panel.tsx
365 Bytes
| import { TabPanel } from '@wordpress/components'; | |
| const TabPanelExample = () => ( | |
| <TabPanel | |
| tabs={ [ | |
| { | |
| name: 'tab1', | |
| title: 'Tab 1', | |
| className: 'tab-one', | |
| }, | |
| { | |
| name: 'tab2', | |
| title: 'Tab 2', | |
| className: 'tab-two', | |
| }, | |
| ] } | |
| > | |
| { ( tab ) => <p>Selected tab: { tab.title }</p> } | |
| </TabPanel> | |
| ); | |
| export default TabPanelExample; | |