Download spectrum/src/components/select/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/select/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/select/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/select/index.js
453 Bytes
| // @flow | |
| import React from 'react'; | |
| import Icon from 'src/components/icon'; | |
| import { Select, Container, IconContainer } from './style'; | |
| type Props = { | |
| children: React$Node, | |
| onChange: (evt: SyntheticInputEvent<HTMLSelectElement>) => void, | |
| defaultValue?: ?string, | |
| }; | |
| export default (props: Props) => ( | |
| <Container> | |
| <Select {...props} /> | |
| <IconContainer> | |
| <Icon glyph={'down-caret'} size={20} /> | |
| </IconContainer> | |
| </Container> | |
| ); | |