Skip to content

mohamedtaarek/reactCarouselComponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Carousel Component

A simple image slider Reactjs component

Installation

Navigate to the folder of the project in your terminal and run

npm install

then run

npm test

then the project will be running on your localhost at port 3000

Including

you can include the component in you react app by including "Carousel.js" and "carousel.css" in your project folder and installing the dependencies by running this in you terminal

npm install react-icons reacts-scripts react-swipeable

and import the component as

import Carousel from "./Carousel.js";

and finaly add the jsx component as follow and give "slides" which is an array of adresses of your slide pictures

<Carousel slides = [{image:'address_1'},{image:'address_2'}]/>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

ScandiWeb test task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published