Download discord-react-clone/src/components/Chat/AttachButton.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/Chat/AttachButton.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/Chat/AttachButton.js
-
curl -L -o AttachButton.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/discord-react-clone/src/components/Chat/AttachButton.js
775 Bytes
| import React from 'react'; | |
| import styled from 'styled-components'; | |
| import colors from '../../utils/colors'; | |
| import AttachButtonPlus from '../../icons/AttachButtonPlus'; | |
| const StyledAttachButton = styled.button` | |
| background: 0; | |
| padding: 0; | |
| margin: 0; | |
| border: 0; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 44px; | |
| height: 44px; | |
| flex: 0 0 auto; | |
| > div { | |
| width: 24px; | |
| height: 24px; | |
| color: ${colors.icon}; | |
| transition: all 0.2s ease; | |
| } | |
| :hover > div { | |
| color: ${colors.iconHover}; | |
| width: 26px; | |
| height: 26px; | |
| } | |
| svg { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| `; | |
| export default () => ( | |
| <StyledAttachButton> | |
| <div> | |
| <AttachButtonPlus /> | |
| </div> | |
| </StyledAttachButton> | |
| ); | |