Download Trello-Clone--React/src/Components/Modal/Modal.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Trello-Clone--React/src/Components/Modal/Modal.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Trello-Clone--React/src/Components/Modal/Modal.tsx
-
curl -L -o Modal.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Trello-Clone--React/src/Components/Modal/Modal.tsx
390 Bytes
| import React from "react"; | |
| import "./Modal.css"; | |
| function Modal(props: any) { | |
| return ( | |
| <div | |
| className="modal" | |
| onClick={() => (props.onClose ? props.onClose() : "")} | |
| > | |
| <div | |
| className="modal-content custom-scroll" | |
| onClick={(event) => event.stopPropagation()} | |
| > | |
| {props.children} | |
| </div> | |
| </div> | |
| ); | |
| } | |
| export default Modal; | |