Download Portfolio/src/components/Particle.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/components/Particle.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/components/Particle.js
-
curl -L -o Particle.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/components/Particle.js
1.07 kB
| import React from "react"; | |
| import Particles from "react-tsparticles"; | |
| function Particle() { | |
| return ( | |
| <Particles | |
| id="tsparticles" | |
| params={{ | |
| particles: { | |
| number: { | |
| value: 160, | |
| density: { | |
| enable: true, | |
| value_area: 1500, | |
| }, | |
| }, | |
| line_linked: { | |
| enable: false, | |
| opacity: 0.03, | |
| }, | |
| move: { | |
| direction: "right", | |
| speed: 0.05, | |
| }, | |
| size: { | |
| value: 1, | |
| }, | |
| opacity: { | |
| anim: { | |
| enable: true, | |
| speed: 1, | |
| opacity_min: 0.05, | |
| }, | |
| }, | |
| }, | |
| interactivity: { | |
| events: { | |
| onclick: { | |
| enable: true, | |
| mode: "push", | |
| }, | |
| }, | |
| modes: { | |
| push: { | |
| particles_nb: 1, | |
| }, | |
| }, | |
| }, | |
| retina_detect: true, | |
| }} | |
| /> | |
| ); | |
| } | |
| export default Particle; | |