Download wp-calypso/client/blocks/reader-author-link/docs/example.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/reader-author-link/docs/example.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/reader-author-link/docs/example.tsx
-
curl -L -o example.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/reader-author-link/docs/example.tsx
474 Bytes
| import { Card } from '@automattic/components'; | |
| import ReaderAuthorLink, { ReaderLinkAuthor } from 'calypso/blocks/reader-author-link'; | |
| export default function ReaderAuthorLinkExample(): JSX.Element { | |
| const author: ReaderLinkAuthor = { | |
| URL: 'http://wpcalypso.wordpress.com', | |
| name: 'Barnaby Blogwit', | |
| }; | |
| return ( | |
| <Card> | |
| <ReaderAuthorLink author={ author }>Author site</ReaderAuthorLink> | |
| </Card> | |
| ); | |
| } | |
| ReaderAuthorLinkExample.displayName = 'ReaderAuthorLink'; | |