Card component is some kind of container look with rounded corners and drop shadows that you can warp around your elements.
We use card components for keeping our code cleaner and to avoid repeating our codes.
Let's say you have multiple card-look elements and instead of repeating the same border-radius
, box-shadow
etc for every single of them, you could wrap your elements around the Card component
You could either :
- Clone the repository :
git clone https://github.com/NazaNEYn/Card-Component-React.git
-
Go to src/component/card
-
Copy Card.css and Card.js and add it to your project
OR you could just go to src/component/card/Card.js and src/component/card/Card.css and just copy paste the code in your project