Download spectrum/src/components/card/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 710 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/card/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/card/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/card/index.js
710 Bytes
| // @flow | |
| import theme from 'shared/theme'; | |
| import React from 'react'; | |
| import compose from 'recompose/compose'; | |
| import styled from 'styled-components'; | |
| import { FlexCol } from '../globals'; | |
| import { MEDIA_BREAK } from 'src/components/layout'; | |
| const StyledCard = styled(FlexCol)` | |
| background: ${theme.bg.default}; | |
| position: relative; | |
| width: 100%; | |
| max-width: 100%; | |
| background-clip: padding-box; | |
| overflow: visible; | |
| flex: none; | |
| @media (max-width: ${MEDIA_BREAK}px) { | |
| border-radius: 0; | |
| box-shadow: none; | |
| } | |
| `; | |
| const CardPure = (props: Object): React$Element<any> => ( | |
| <StyledCard {...props}>{props.children}</StyledCard> | |
| ); | |
| export const Card = compose()(CardPure); | |
| export default Card; | |