Download wp-calypso/client/devdocs/design/wordpress-components-gallery/card.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/card.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/card.tsx
-
curl -L -o card.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/card.tsx
665 Bytes
| import { | |
| Button, | |
| Card, | |
| CardBody, | |
| CardFooter, | |
| CardDivider, | |
| CardHeader, | |
| FlexBlock, | |
| FlexItem, | |
| } from '@wordpress/components'; | |
| const CardExample = () => ( | |
| <Card isElevated> | |
| <CardHeader isShady={ false }> | |
| <FlexBlock>Header: Code is Poetry</FlexBlock> | |
| <FlexItem> | |
| <Button variant="link">Dismiss</Button> | |
| </FlexItem> | |
| </CardHeader> | |
| <CardBody>...</CardBody> | |
| <CardDivider className="card-example" /> | |
| <CardBody>...</CardBody> | |
| <CardFooter isShady={ false }> | |
| <FlexBlock>Footer: Code is Poetry</FlexBlock> | |
| <FlexItem> | |
| <Button variant="primary">Action</Button> | |
| </FlexItem> | |
| </CardFooter> | |
| </Card> | |
| ); | |
| export default CardExample; | |